crunz
crunz copied to clipboard
Task activity status
Hi
Description
Sometimes you need to pause a task, and it would be nice if you could set a status for tasks.
- Actively
- Pause
- Disabled
And so on, it would be good to think Also display the "Status" column in the schedule:list table
Example
use Crunz\Schedule;
$scheduler = new Schedule();
$task = $scheduler->run('command/to/execute');
$task
->description('Task description')
->in('path/to/your/command')
->preventOverlapping()
->everyThirtyMinutes()
->weekdays()
->setStatusPause() // Set status
;
return $scheduler;