I’ve got backgroundrb handling three periodic tasks. For some reason,
each of them is firing twice on each run. From my backgroundrb.log:
Daily stats in production at Sat Nov 04 03:00:41 EST 2006
Daily stats in production at Sat Nov 04 03:00:41 EST 2006
11 expired sessions being deleted at Sat Nov 04 03:03:41 EST 2006
0 expired sessions being deleted at Sat Nov 04 03:03:41 EST 2006
Database backup in production at Sat Nov 04 03:33:41 EST 2006
Database backup in production at Sat Nov 04 03:33:41 EST 2006
You get the idea.
Each of the workers has some variation of the following:
MINUTES_TO_KEEP = 15
repeat_every MINUTES_TO_KEEP.minutes
first_run Time.now
My backgroundrb.yml config file has:
autostart:
1:
job_key: session_cleanup1
class: session_cleanup_worker
2:
job_key: database_backup1
class: database_backup_worker
3:
job_key: log_statistics
class: daily_stats_worker
Does anybody have an idea why this is happening, and what I can do to
stop it?
–Al Evans