Forum: Ruby on Rails BackgrounDRb - Dynamic Schedules

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8e4ef8b3306c70f83452de941e15a019?d=identicon&s=25 Trevor Dawe (tvor)
on 2009-04-06 18:41
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!
This topic is locked and can not be replied to.