Rails whenever gem: each month on the 20th

后端 未结 4 1914
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 14:20

I searched all over the internet for this, and the documentation isn\'t really talking about monthly jobs in specific. So I was hoping that someone here could tell me how to do

4条回答
  •  名媛妹妹
    2021-02-02 14:42

    If you want it more readable you can also just parse a date in text.

    every 1.month, :at => 'January 20th 2:00am' do
      runner "Mailer.send_friend_sheet"
    end
    

    This will generate 0 2 20 * * as well.

提交回复
热议问题