schedule:run
Artisan command will automatically be invoked every minute on your App compute cluster, allowing your Laravel application to process its scheduled tasks.
onOneServer
method when scheduling your tasks. Otherwise, your tasks will run on every replica, which may lead to unexpected behavior in your application. If you intend for a scheduled task to run on all replicas, you may omit the onOneServer
method when scheduling the task.
For more information on Laravel task scheduling, please consult the Laravel task scheduler documentation.
database
cache store, Laravel Cloud will automatically set your schedule cache driver to use your database as well. This means that your database will be queried every minute and is unlikely to ever hibernate, even if it is configured to do so.