lib/rocket_job/plugins/job/state_machine.rb in rocketjob-3.0.2 vs lib/rocket_job/plugins/job/state_machine.rb in rocketjob-3.0.3
- old
+ new
@@ -74,10 +74,10 @@
transitions from: :paused, to: :aborted
end
event :requeue do
transitions from: :running, to: :queued,
- if: -> server_name { worker_name.start_with?(server_name) },
+ if: -> server_name { worker_name.to_s.start_with?(server_name) },
after: :rocket_job_clear_started_at
end
end
# @formatter:on