cron
, but it can be frustrating to have your scheduling logic disconnected from your code. To make this easy, Alchemy provides a clean API for scheduling repeated tasks & jobs.
schedule()
function. You’ll probably want to do this in your boot()
function. This returns a builder with which you can customize the frequency of the task.
--schedule
flag to either the serve
(default) or queue
command.