You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/gouda/adapter.rb
+1-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ def enqueue_all(active_jobs)
57
57
# We can't tell Postgres to ignore conflicts on _both_ the scheduler key and the enqueue concurrency key but not on
58
58
# the ID - it is either "all indexes" or "just one", but never "this index and that index". MERGE https://www.postgresql.org/docs/current/sql-merge.html
59
59
# is in theory capable of solving this but let's not complicate things all to hastily, the hour is getting late
60
-
scheduler_key=active_job.try(:executions) == 0 ? active_job.scheduler_key : nil# only enforce scheduler key on first workload
60
+
scheduler_key=(active_job.try(:executions) == 0) ? active_job.scheduler_key : nil# only enforce scheduler key on first workload
61
61
{
62
62
active_job_id: active_job.job_id,# Multiple jobs can have the same ID due to retries, job-iteration etc.
0 commit comments