#Schedule didnt work as spected

8 messages · Page 1 of 1 (latest)

ornate trail
#

I am running this code in Laravel's scheduler but the log is not appearing. I am using the latest master version of Laravel ("version": "v10.44.0").
What could be happening?

$schedule->call(function () {
    Log::info("message");
})
    ->description("example")
    ->everyMinute()
    ->withoutOverlapping(10)
    ->evenInMaintenanceMode();

Thanks in advance!

pine sandal
#

You are running the scheduler?

ornate trail
#

yes, and i use the test command that execute it and nothing happens, and this occurs when i update the laravel version to the last
PD: sorry for my english

ornate trail
#

i can add i use short-scheduler and it works without problems

    protected function shortSchedule(\Spatie\ShortSchedule\ShortSchedule $shortSchedule)
    {
        $shortSchedule->command('terminar:colas')->everySeconds(2)->runInMaintenanceMode();
    }
ornate trail
#

when i use schedule:work when hit a minute it say no scheduled commands are ready tu run

#

but if i execute schedule:list get this message

muted hollow
#

Clear your cache and try again. withoutOverlapping will "block" your command until the lock timer runs out in case of errors