BackgrounDRb - Dynamic Schedules


#1

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!