We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e633ff commit 7f941a5Copy full SHA for 7f941a5
app/models/solid_queue/recurring_task.rb
@@ -48,7 +48,7 @@ def create_or_update_all(tasks)
48
end
49
50
def delay_from_now
51
- [ (next_time - Time.current).to_f, 0 ].max
+ [ (next_time - Time.current).to_f, 0.1 ].max
52
53
54
def next_time
test/integration/instrumentation_test.rb
@@ -327,7 +327,7 @@ class InstrumentationTest < ActiveSupport::TestCase
327
328
events = subscribed("enqueue_recurring_task.solid_queue") do
329
schedulers.each(&:start)
330
- sleep 1.01
+ wait_while_with_timeout(1.1.second) { SolidQueue::RecurringExecution.count < 2 }
331
schedulers.each(&:stop)
332
333
0 commit comments