配置复杂的时间表

Configure complex schedule

我正在使用 sidekiq-scheduler 并且需要为 运行 一名工作人员配置以下时间表:

Run each minute from 9h to 18h, but don't run at weekends

可以用这个调度程序做这样的事情吗?

是的,有可能:* 9-18 * * 1-5


Monday1Tuesday2,依此类推。 为了不在周末运行,我们周一到周五运行(1-5)

# config/sidekiq.yml
:schedule:
  hello_world:
    cron: '* 9-18 * * 1-5' # Run each minute from 9h to 18h from Monday to Sunday
    class: HelloWorld