crunz icon indicating copy to clipboard operation
crunz copied to clipboard

Task activity status

Open remitmaster opened this issue 1 year ago • 6 comments

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;

remitmaster avatar Oct 16 '23 14:10 remitmaster