Skip to content

Commit

Permalink
Do not create a new transaction when creating a ReadyExecution
Browse files Browse the repository at this point in the history
Fixes rails#421
  • Loading branch information
leondmello authored Nov 21, 2024
1 parent 393e3b9 commit dae9fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/solid_queue/job/executable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dae9fe7

Please sign in to comment.