Skip to content
Snippets Groups Projects
Unverified Commit 9b7e702d authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

discard website jobs if repo invalid (#2128)

parent f6fe7f9b
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,8 @@ class Communication::Website::BaseJob < ApplicationJob
queue_as :elephant
discard_on ActiveJob::DeserializationError
discard_on ActiveJob::DeserializationError, # Discard if object does not exist anymore
Octokit::InvalidRepository # Discard if repository is invalid to prevent useless API calls
# Retry the job after 1 minute if it is interrupted, to prevent queue from being blocked
retry_on GoodJob::InterruptError, wait: 1.minute, attempts: Float::INFINITY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment