# BackgrounDRb - Dynamic Schedules

**URL:** <https://www.ruby-forum.com/t/backgroundrb-dynamic-schedules/164857>\
**Category:** Rails\
**Created:** [April 6, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/backgroundrb-dynamic-schedules/164857 "2009-04-06T18:41:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tvor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d26b3c/32.png) [@tvor](https://www.ruby-forum.com/u/tvor)\
**Post date:** [April 6, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/backgroundrb-dynamic-schedules/164857/1 "2009-04-06T18:41:20Z")

</div>

I have an RoR application with a BackgrounDRb server that has a worker  
which invokes a function in the worker every 5 seconds. I have this set  
up in my background.yml as

* * *

:backgroundrb:  
:ip: 0.0.0.0  
:port: 11006  
:schedules:  
:my\_worker:  
:do\_something:  
:trigger\_args: \*/5 \* \* \* \* \*

My question is, is there a way for my RoR application to change the  
trigger\_args dynamically during run-time? For instance, update the  
worker to call do\_something every 10 seconds? I’ve come across  
load\_schedule\_from\_args but it’s not working for me.

Thanks!
