You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to jump in with my 10-minute-knowledge about clockwork, but as far as I understood, clockwork runs in a single thread - therefore execution of a task keeps it busy while it runs and it cannot do simultaneous tasks. You would either
use the threads option (I'm sure I saw one) to spawn multiple simultaneous processes or
(better) use clockwork to start background runners like Rails' ActiveJobs, Sidekiq, Resque, etc. which will run in the background
I hope that helps, I literally have 10 minutes knowledge about this. Cheers
Hi
For example, there are 2 tasks in clock.rb
every(1.week, 'task_1', tz: 'Amsterdam', :at => 'Friday 01:00'){ rake tasks:task_1 }
every(1.week, 'task_2', tz: 'Amsterdam', :at => 'Friday 02:00'){ rake tasks:task_2 }
If
task_1
is running till 2:00 thentask_2
is not started. Let me know how to starttask_2
process whentask_1
is already in process.Thanks
The text was updated successfully, but these errors were encountered: