Skip to content

Commit

Permalink
Merge branch 'main' into deps
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Nov 15, 2023
2 parents 71ed2d6 + aefffe0 commit bb2b1c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_scheduler/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def reschedule_orphans_on!(hostname = nil)
info = schedule_info(klass)

if ['QUEUED', 'RUNNING'].include?(info.prev_result) &&
(info.current_owner.blank? || !redis.get(info.current_owner))
(!info.current_owner || !redis.get(info.current_owner))
info.prev_result = 'ORPHAN'
info.next_run = Time.now.to_i
info.write!
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'mini_scheduler'
require 'active_support'
require 'active_support/core_ext/numeric/time'
require 'active_support/core_ext/integer/time'
require 'mocha/api'
Expand Down

0 comments on commit bb2b1c3

Please sign in to comment.