Skip to content

Commit

Permalink
Merge pull request #507 from slovensko-digital/GO-139/do_not_retry_on…
Browse files Browse the repository at this point in the history
…_submission_error

GO-139 Do not retry on Submission Error
  • Loading branch information
luciajanikova authored Nov 16, 2024
2 parents 3c6a5ed + 7adf5c9 commit 548f0a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/jobs/govbox/submit_message_draft_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class TemporarySubmissionError < SubmissionError

retry_on TemporarySubmissionError, wait: 2.minutes, attempts: 5

retry_on SubmissionError, attempts: 1 do |_job, _error|
# no-op
end

def perform(message_draft, bulk_submit: false, upvs_client: UpvsEnvironment.upvs_client)
raise "Invalid message!" unless message_draft.valid?(:validate_data)

Expand Down

0 comments on commit 548f0a9

Please sign in to comment.