adamwiggins / clockwork

A scheduler process to replace cron
662 stars 186 forks source link

Task is not running if previous task in Process #25

Open brijeshror opened 7 years ago

brijeshror commented 7 years ago

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 then task_2 is not started. Let me know how to start task_2 process when task_1 is already in process.

Thanks

brijeshror commented 7 years ago

Any update on this?

gr8bit commented 7 years ago

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

I hope that helps, I literally have 10 minutes knowledge about this. Cheers

brijeshror commented 7 years ago

Thanks for update.