diff --git a/app/models/solid_queue/job/executable.rb b/app/models/solid_queue/job/executable.rb index e2146a67..0834aa17 100644 --- a/app/models/solid_queue/job/executable.rb +++ b/app/models/solid_queue/job/executable.rb @@ -101,7 +101,7 @@ def discard private def ready - ReadyExecution.create_or_find_by!(job_id: id) + ReadyExecution.find_by_job_id(id) || ReadyExecution.create!(job_id: id) end def execution