Job is incomplete class Exception #49540
Replies: 8 comments 1 reply
-
I'm having the same problem, did I manage to solve it? |
Beta Was this translation helpful? Give feedback.
-
Also having this issue.
|
Beta Was this translation helpful? Give feedback.
-
In my case, the issue turned out to be a separate QA server, connected to the same db/cache/queue, but with an older or nonexistent job class definition, that was attempting to run the queued jobs. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue. Existing jobs still work just fine. I even copied a working job and renamed it with the same result:
|
Beta Was this translation helpful? Give feedback.
-
I have this problem, too.
|
Beta Was this translation helpful? Give feedback.
-
Same here, same error. |
Beta Was this translation helpful? Give feedback.
-
Same here: Job is incomplete class: {"__PHP_Incomplete_Class_Name":"App\Jobs |
Beta Was this translation helpful? Give feedback.
-
I encountered a similar issue and traced it back to the underlying classes/methods in use. The problem was related to the serialized class object stored in the jobs table/Redis. When a job is dispatched, it is created and stored in the table as a serialized string using the When a queue worker picks up the jobs from the table/Redis, it unserializes the job object using the Internally, the object is reconstructed from the serialized string using the The issue seems to be that the classes are not found. Here is the proof of concept: https://onecompiler.com/php/42j6zcceu |
Beta Was this translation helpful? Give feedback.
-
Laravel Version
10.10
PHP Version
8.2
Database Driver & Version
No response
Description
I'm using redis as a queue driver and manged by horizon. I have 10 queue workers .I'm randomly getting this error "message": "Job is incomplete class: but when i retry the job next time it works fine.
Here is a detailed log
{
"class": "Exception",
"message": "Job is incomplete class: {"__PHP_Incomplete_Class_Name":"App\\Jobs\\Trends\\GlobalRecentsUpdater","connection":"redis","queue":"trends"}",
"code": 0,
"file": "/var/www/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:117",
"trace": [
"/var/www/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:70",
"/var/www/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php:102",
"/var/www/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:439",
"/var/www/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:389",
"/var/www/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:176",
"/var/www/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:137",
"/var/www/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:120",
"/var/www/vendor/laravel/horizon/src/Console/WorkCommand.php:51",
"/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36",
"/var/www/vendor/laravel/framework/src/Illuminate/Container/Util.php:41",
"/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93",
"/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35",
"/var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php:662",
"/var/www/vendor/laravel/framework/src/Illuminate/Console/Command.php:211",
"/var/www/vendor/symfony/console/Command/Command.php:326",
"/var/www/vendor/laravel/framework/src/Illuminate/Console/Command.php:180",
"/var/www/vendor/symfony/console/Application.php:1096",
"/var/www/vendor/symfony/console/Application.php:324",
"/var/www/vendor/symfony/console/Application.php:175",
"/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:201",
"/var/www/artisan:35
And here is my Job class
And Here is where i schedule the Job
Steps To Reproduce
Actually I could not find any pattern for it
Beta Was this translation helpful? Give feedback.
All reactions