lavary/crunz

Job only fire once and not run again

mdjaman opened this issue · 1 comments

Crunz version: 2.3.1

PHP version: 7.4

Operating system type and version: MacOS Ventura

Description
Job only fired once and not run again

How to reproduce
in my crontab : * * * * * cd ~/Projects/stelab && php vendor/bin/crunz schedule:run

`use Crunz\Schedule;

require DIR . '/../vendor/autoload.php';

$schedule = new Schedule();

$cmd = sprintf(
'cd %s && touch $RANDOM',
DIR . '/../data/log'
);
$task = $schedule->run($cmd);
$task
->description('Simple Task')
->everyMinute()
->preventOverlapping();

return $schedule;
`

Hello, this repo is no longer maintained, please use https://github.com/crunzphp/crunz