crunzphp / crunz

A PHP-based job scheduler
MIT License
180 stars 16 forks source link

Tasks do not run after upgrade to latest version #82

Closed GlennM closed 7 months ago

GlennM commented 7 months ago

Crunz version: 3.7.0

PHP version: 8.2

Operating system type and version: AlmaLinux v8.9.0

Description

After upgrading Crunz to the latest version, contents of my task (everything enclosed in $scheduler->run(function () {) were no longer triggered.

The file itself was triggered, which could be verified by placing a debug statement in the file somewhere, e.g. right after the $scheduler = new Schedule(); line

How to reproduce

$scheduler = new Schedule();
// E.g. sending a mail here does work
$task = $scheduler->run(function () {
    // Any code here does not get triggered
});
$task
    ->description('Example description')
    ->preventOverlapping()
    ->everyMinute();

return $scheduler;
GlennM commented 7 months ago

Issue seems to be resolved. Looked like a conflict with some other new code.