skip to Main Content

I’m getting an error I don’t know how to fix so I wondering if I could get some help.

My function:

                dispatch(new AppJobscreateSqlJob($databaseName, $data['company_name']));

This is the error:

| 2022-12-13 21:36:38 | Exception: Job is incomplete class: {"__PHP_Incomplete_Class_Name":"App\Jobs\createSqlJob","99992","99992"} in /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:116
Stack trace:
#0 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(69): IlluminateQueueCallQueuedHandler->dispatchThroughMiddleware()
#1 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): IlluminateQueueCallQueuedHandler->call()
#2 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(428): IlluminateQueueJobsJob->fire()
#3 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(378): IlluminateQueueWorker->process()
#4 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(172): IlluminateQueueWorker->runJob()
#5 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(130): IlluminateQueueWorker->daemon()
#6 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(114): IlluminateQueueConsoleWorkCommand->runWorker()
#7 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): IlluminateQueueConsoleWorkCommand->handle()
#8 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): IlluminateContainerBoundMethod::IlluminateContainer{closure}()
#9 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): IlluminateContainerUtil::unwrapIfClosure()
#10 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): IlluminateContainerBoundMethod::callBoundMethod()
#11 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): IlluminateContainerBoundMethod::call()
#12 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): IlluminateContainerContainer->call()
#13 /var/www/NTTJob/vendor/symfony/console/Command/Command.php(308): IlluminateConsoleCommand->execute()
#14 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): SymfonyComponentConsoleCommandCommand->run()
#15 /var/www/NTTJob/vendor/symfony/console/Application.php(1002): IlluminateConsoleCommand->run()
#16 /var/www/NTTJob/vendor/symfony/console/Application.php(299): SymfonyComponentConsoleApplication->doRunCommand()
#17 /var/www/NTTJob/vendor/symfony/console/Application.php(171): SymfonyComponentConsoleApplication->doRun()
#18 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): SymfonyComponentConsoleApplication->run()
#19 /var/www/NTTJob/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): IlluminateConsoleApplication->run()
#20 /var/www/NTTJob/artisan(37): IlluminateFoundationConsoleKernel->handle()
#21 {main} |

This error occurs when I run dispatch to a job on server.

Where have I gone wrong?

i tried restart supervisor, but it failed

2

Answers


  1. In your job you are getting (DB NAME:string , COMPANY NAME:string)

    ($databaseName, $data[‘company_name’])

    in error it says you are not giving a proper DB NAME

    you are having numbers in it

    ,"99992","99992"

    Login or Signup to reply.
  2. Make sure you’ve restarted your queue worker after deployment

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search