We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 059132e commit 447a77bCopy full SHA for 447a77b
app/jobs/concerns/spotlight/job_tracking.rb
@@ -44,7 +44,7 @@ def initialize_job_tracker!(**params)
44
end
45
46
def finalize_job_tracker!
47
- return unless job_tracker.status == 'in_progress' || job_tracker.status == 'enqueued'
+ return unless %w[in_progress enqueued].include?(job_tracker.status)
48
49
job_tracker.update(
50
status: @failed ? 'failed' : 'completed',
0 commit comments