Skip to content

Error: Call to a member function setCurrentJob() on null #157

Description

@spignataro
Error
0 - Call to a member function setCurrentJob() on null
#0 /var/app/current/vendor/mmucklo/queue-bundle/Manager/WorkerManager.php(101): Dtc\QueueBundle\Manager\WorkerManager->runJob(Object(Dtc\QueueBundle\Entity\Job))
#1 /var/app/current/vendor/mmucklo/queue-bundle/Run/Loop.php(133): Dtc\QueueBundle\Manager\WorkerManager->run(NULL, NULL, true, '4248312')
#2 /var/app/current/vendor/mmucklo/queue-bundle/Command/RunCommand.php(150): Dtc\QueueBundle\Run\Loop->runLoop(1691756102.2383, NULL, NULL, 10, NULL, 500000000)
#3 /var/app/current/vendor/symfony/console/Command/Command.php(255): Dtc\QueueBundle\Command\RunCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/app/current/vendor/symfony/console/Application.php(935): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/app/current/vendor/symfony/framework-bundle/Console/Application.php(89): Symfony\Component\Console\Application->doRunCommand(Object(Dtc\QueueBundle\Command\RunCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/app/current/vendor/symfony/console/Application.php(269): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand(Object(Dtc\QueueBundle\Command\RunCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/app/current/vendor/symfony/framework-bundle/Console/Application.php(75): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/app/current/vendor/symfony/console/Application.php(145): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/app/current/bin/console(38): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput))
#10 {main}

We have been using DTC Queue for virtually every one of our projects that requires a queue manager. Everything works great except for this one worker that we have setup. It builds a PDF using mPDF and is suppose to email out. The problem is this occurs A LOT and it never fires off the worker. So we don't believe there is any issue with the worker code itself (because it is just like our other workers and they work just fine).

So we have setup the worker to fire off with a max-count of 1 thinking that it might be a threading issues caused by two workers running at the same time. The issue is the above error captured in the archive table means it never even got to our worker code to fire off.

So what is causing this? We are on Symfony 5? Like I said all of our other workers are firing off with no problems except for this specific one. We even attempted renaming it - but still similar issues.

Any thoughts on what the cause is?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions