<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>The worker looks like that:</div><div><br></div><div><div>class NotificationWorker &lt; BackgrounDRb::MetaWorker</div><div>&nbsp;&nbsp;set_worker_name :notification_worker</div><div>&nbsp;&nbsp;reload_on_schedule true</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;def create(args = nil)</div><div>&nbsp;&nbsp; &nbsp;# time argument is in seconds</div><div>&nbsp;&nbsp;end</div><div><br></div><div>&nbsp;&nbsp;def do_it</div><div>&nbsp;&nbsp; &nbsp;logger.info('NotificationWorker do it start')</div><div>&nbsp;&nbsp; &nbsp;begin</div><div>&nbsp;&nbsp; &nbsp; &nbsp;Idea.notify_users</div><div>&nbsp;&nbsp; &nbsp;rescue &nbsp;Exception =&gt; e</div><div>&nbsp;&nbsp; &nbsp; &nbsp;logger.error("Idea.notify_users Exception: #{e.to_s} #{e.backtrace.join('\\n')}")</div><div>&nbsp;&nbsp; &nbsp;end</div><div>&nbsp;&nbsp; &nbsp;logger.info('NotificationWorker do it end')</div><div>&nbsp;&nbsp;end</div><div>end</div><div><br></div><div><br></div><div>Recover - we removed the scheduling and trigger only daily right now.</div><div><br></div><div>Not sure if it would work today (after the day that has only 23 hours). but as it is a production system we did not try it.</div><div><br></div><div>Regards</div><div>Till</div><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div id="footer"><address><p class="logo"></p><p class="personal"><b><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" size="2">MindMeister - MeisterLabs GmbH</font>&nbsp;<br><font class="Apple-style-span" size="2">Till Vollmer</font>&nbsp;<br><font class="Apple-style-span" size="2">Managing Director</font>&nbsp;<br><font class="Apple-style-span" size="2">Tel: +49 (0)89 1213 5359</font>&nbsp;<br><font class="Apple-style-span" size="2">Mob: + 49 (0)160 718 7403</font>&nbsp;<br><font class="Apple-style-span" size="2">Fax: +49 (0)89 1892 1347</font>&nbsp;<br><font class="Apple-style-span" size="2">Yahoo ID: till_vollmer</font>&nbsp;<br><font class="Apple-style-span" size="2">Skype: till_vollmer</font>&nbsp;<br><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><a href="http://www.mindmeister.com">www.mindmeister.com</a></span></font></span></b></p></address></div></div></div></span></div></span></div> </div><br><div><div>Am 30.03.2009 um 14:31 schrieb hemant:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Mon, Mar 30, 2009 at 3:29 PM, Till Vollmer &lt;<a href="mailto:till@mindmeister.com">till@mindmeister.com</a>&gt; wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite">we have encountered a severe bug in backgroundrb last weekend.<br></blockquote><blockquote type="cite">On Sunday at 20:00 (EST) backgroundrb launched infinite workers of<br></blockquote><blockquote type="cite">notification_worker and our server was killed because of memory consumption.<br></blockquote><blockquote type="cite">:backgroundrb:<br></blockquote><blockquote type="cite">&nbsp;&nbsp;:port: 11006<br></blockquote><blockquote type="cite">&nbsp;&nbsp;:ip: 0.0.0.0<br></blockquote><blockquote type="cite">&nbsp;&nbsp;:persistent_disabled: true # turn this off if your application doesn't use<br></blockquote><blockquote type="cite">backgroundrb's persistent/enqueued tasks system<br></blockquote><blockquote type="cite">&nbsp;&nbsp;:persistent_delay: 10 # the time (seconds) between each time backgroundrb<br></blockquote><blockquote type="cite">checks the database for enqueued tasks<br></blockquote><blockquote type="cite">:schedules:<br></blockquote><blockquote type="cite">&nbsp;&nbsp;:notification_worker:<br></blockquote><blockquote type="cite">&nbsp;&nbsp; &nbsp;:do_it:<br></blockquote><blockquote type="cite">&nbsp;&nbsp; &nbsp; &nbsp;:trigger_args: 0 30 */4 * * * *<br></blockquote><blockquote type="cite">We think that it might be related to daylight saving time.<br></blockquote><blockquote type="cite">Any hints&nbsp;appreciated.<br></blockquote><br>Were you using reload_on_schedule ?? But yes, the bug do seem like<br>triggered by DST, I will be pushing out an update that will contain<br>the fix.<br><br>BTW, were you able to recover the worker?<br></div></blockquote></div><br></div></body></html>