# Backgroundrb scheduler stops

**URL:** <https://www.ruby-forum.com/t/backgroundrb-scheduler-stops/109614>\
**Category:** Rails\
**Created:** [July 17, 2007, 10:50am UTC](https://www.ruby-forum.com/t/backgroundrb-scheduler-stops/109614 "2007-07-17T10:50:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![levent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@levent](https://www.ruby-forum.com/u/levent)\
**Post date:** [July 17, 2007, 10:50am UTC](https://www.ruby-forum.com/t/backgroundrb-scheduler-stops/109614/1 "2007-07-17T10:50:35Z")

</div>

I have two scheduled tasks:

background\_schedules.yml

mail\_sender\_1:  
:class: :mail\_sender\_worker  
:job\_key: :job\_key\_mail\_sender\_1  
:worker\_method: :do\_work  
:trigger\_args:  
:start: \<%= Time.now + 5.seconds %\>  
🔚 \<%= 1.years.from\_now %\>  
:repeat\_interval: \<%= 60.minutes %\>

cleanup\_1:  
:class: :cleanup\_worker  
:job\_key: :job\_key\_cleanup\_1  
:worker\_method: :do\_work  
:trigger\_args:  
:start: \<%= Time.now + 30.minutes %\>  
🔚 \<%= 1.years.from\_now %\>  
:repeat\_interval: \<%= 60.minutes %\>

Every morning between midnight and 2am they stop being triggered…

Everything else seems to run fine…

I have another background rb worker that is triggered when an external  
app makes a call via an api… that one keeps running…  
There are no errors in any of the logs, just that my scheduled tasks  
never run again, unless I stop and start backgroundrb

my log:  
20070716-22:19:16 (26124) start sending mails  
20070716-22:19:17 (26124) finished sending mails  
20070716-22:49:11 (26124) do\_work in CleanupWorker called  
20070716-22:49:11 (26124) started cleanup  
20070716-22:49:11 (26124) finished cleanup  
20070716-23:19:16 (26124) do\_work in MailSenderWorker called  
20070716-23:19:16 (26124) start sending mails  
20070716-23:19:17 (26124) finished sending mails  
20070716-23:49:11 (26124) do\_work in CleanupWorker called  
20070716-23:49:11 (26124) started cleanup  
20070716-23:49:11 (26124) finished cleanup  
20070717-08:19:45 (26124) do\_work in ProcessVacancyWorker called  
20070717-08:19:45 (26124) start processing vacancy  
20070717-08:20:59 (26124) finished processing vacancy

As you can see the mail and cleanup workers last ran before midnight…  
they should run every hour but there is a gap till 08:19 when the api  
was called…

I added the end parameter to my schedules yaml but it made no  
difference…

Any ideas?
