A Laravel app needs to run a database-heavy report every night at 2 AM without overlapping runs if the previous job is still executing. How do you configure this in the scheduler?
-
A
Use ->dailyAt('02:00')->withoutOverlapping() on the scheduled command
-
B
Use ->cron('0 2 * * *') and add a pid file check in the command itself
-
C
Set QUEUE_TIMEOUT=86400 in .env and dispatch the job at midnight
-
D
Use ->everyMinute()->between('02:00', '02:01')