Closed ghost closed 7 years ago
Thanks for the bug report! I'll land a patch and unit test shortly, but the fix is easy -- change >=
to >
on this line:
https://github.com/facebook/bistro/blob/master/bistro/cron/StandardCrontabItem.cpp#L298
It was simply an over-zealous assertion.
cron schedule day_of_week with single item gets error, "dow 3 carried to 3".
These examples get the error (with today being Tuesday):
But multiple days of week works fine (runs the task):
Example error message:
E0516 09:20:18.108150 31104 Monitor.cpp:141] Updating monitor histogram (/home/username/src/bistro/bistro/monitor/Monitor.cpp:60): dow 3 carried to 3 E0516 09:20:19.658288 31107 Bistro.cpp:75] Main loop (/home/username/src/bistro/bistro/Bistro.cpp:48): Error getting nodes: dow 3 carried to 3
Example configuration that produces the error:
Example scheduler startup:
Example worker startup: