Skip to content

Commit

Permalink
ugh, fix batch flag
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxraven committed Oct 16, 2024
1 parent 671eecd commit aca4153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ nbproject
.env
.env.*
/nul
vendor/
vendor/
.vscode
2 changes: 1 addition & 1 deletion lib/resque/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def enqueue_next_item(timestamp)
end

def batch_delayed_items?
enable_delayed_requeue_batches || delayed_requeue_batch_size <= 1
enable_delayed_requeue_batches || delayed_requeue_batch_size > 1
end

# Enqueues all delayed jobs for a timestamp
Expand Down

0 comments on commit aca4153

Please sign in to comment.