Skip to content

Commit b4030ce

Browse files
clear locked fields to make sure it runs (#241)
Co-authored-by: Vijay Swamidass <[email protected]>
1 parent 57f72db commit b4030ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/delayed_jobs_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def run_now
2525

2626
authorize @job, :update?
2727

28-
@job.update(run_at: Time.now)
28+
@job.update(run_at: Time.now, locked_at: nil, locked_by: nil)
2929
redirect_to delayed_jobs_path, notice: 'Job has been scheduled to run immediately.'
3030
end
3131

0 commit comments

Comments
 (0)