diff --git a/.gitignore b/.gitignore index 6cf49881..6cd1c439 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ nbproject .env .env.* /nul -vendor/ \ No newline at end of file +vendor/ +.vscode diff --git a/lib/resque/scheduler.rb b/lib/resque/scheduler.rb index ed5edb29..b3155b8b 100644 --- a/lib/resque/scheduler.rb +++ b/lib/resque/scheduler.rb @@ -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