lib/rocket_job/plugins/job/state_machine.rb in rocketjob-3.4.3 vs lib/rocket_job/plugins/job/state_machine.rb in rocketjob-3.5.0

- old
+ new

@@ -76,11 +76,11 @@ transitions from: :paused, to: :aborted end event :requeue do transitions from: :running, to: :queued, - if: -> server_name { worker_on_server?(server_name) }, + if: ->(server_name) { worker_on_server?(server_name) }, after: :rocket_job_clear_started_at end end # @formatter:on @@ -163,9 +163,8 @@ def rocket_job_destroy_on_complete destroy if destroy_on_complete && !new_record? end end - end end end