We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 059132e + 447a77b commit 91c9c52Copy full SHA for 91c9c52
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