Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO-164 Do not retry Fs::DownloadSentMessageRelatedMessagesJob if NoRelatedMessagesError #518

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

luciajanikova
Copy link
Member

Sice sme spravili upravy v #517, job vyfailuje, ale retryuje sa. To nechceme, ved aj tak sync bezi kazde 2h, zbytocne tam tieto joby netocme dokola. Potrebujeme len, aby takyto job vyfailoval, nech vieme o tom, ze sa nieco deje.

class NoRelatedMessagesError < StandardError
end

retry_on NoRelatedMessagesError, attempts: 1 do |_job, _error|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toto znie ako mozno aj ocakavane, zvazme ci nepremenujeme na MissingRelatedMessagesError

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upravene

@luciajanikova luciajanikova requested a review from jsuchal December 3, 2024 08:18
@luciajanikova luciajanikova merged commit 0839fd7 into main Dec 3, 2024
3 checks passed
@luciajanikova luciajanikova deleted the GO-164/do_not_retry_download_job_if_no_messages branch December 3, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants