spatie/laravel-schedule-monitor

PingOhDearJob keeps failing

phadaphunk opened this issue · 0 comments

Most of our OhDear pings fail with the following exception :

Illuminate\Queue\MaxAttemptsExceededException: Spatie\ScheduleMonitor\Jobs\PingOhDearJob has been attempted too many times or run too long. The job may have previously timed out. in /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:750
Stack trace:
#0 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(504): Illuminate\Queue\Worker->maxAttemptsExceededException()
#1 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(418): Illuminate\Queue\Worker->markJobAsFailedIfAlreadyExceedsMaxAttempts()
#2 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(378): Illuminate\Queue\Worker->process()
#3 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(329): Illuminate\Queue\Worker->runJob()
#4 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(126): Illuminate\Queue\Worker->runNextJob()
#5 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(110): Illuminate\Queue\Console\WorkCommand->runWorker()
#6 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#7 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#8 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#9 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#10 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Container/Container.php(653): Illuminate\Container\BoundMethod::call()
#11 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\Container\Container->call()
#12 /home/forge/production-worker/vendor/symfony/console/Command/Command.php(291): Illuminate\Console\Command->execute()
#13 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run()
#14 /home/forge/production-worker/vendor/symfony/console/Application.php(989): Illuminate\Console\Command->run()
#15 /home/forge/production-worker/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand()
#16 /home/forge/production-worker/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#17 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\Component\Console\Application->run()
#18 /home/forge/production-worker/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Console\Application->run()
#19 /home/forge/production-worker/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
#20 {main}

The worker has a 240s timeout and it is a single alert sent to OhDear so it should be pretty quick. Our queue worker is database and it has a 9000 retry_after so it should not get sent back to the queue because the job is taking too long.

Anyone encountered this?