Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
9b7e702d
Unverified
Commit
9b7e702d
authored
7 months ago
by
Sébastien Gaya
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
discard website jobs if repo invalid (#2128)
parent
f6fe7f9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/jobs/communication/website/base_job.rb
+2
-1
2 additions, 1 deletion
app/jobs/communication/website/base_job.rb
with
2 additions
and
1 deletion
app/jobs/communication/website/base_job.rb
+
2
−
1
View file @
9b7e702d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment