I been trying schedule a job with clockwork
to run only on day eg. February 14. But I'm not sure if is this possible because the documentation formats do not have this possibility.
I know that I can do something like this:
Clockwork.every(1.day, 'valentines_day_job', if: lambda { |t| t.day == 14 && t.month == 2 })
But I would like to avoid unnecessary verification every day.
Any ideas?
Thank you.
为此,请将1.day更改为1.year
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.