SilverStripe 4.10:
I am trying to create my own Symbiote\QueuedJobs job but I’m missing something (probably really simple!)
-
I have confirmed the original Symbiote\QueuedJobs\Tasks\DummyQueuedJob runs and completes correctly when adding it using the CMS “Jobs” section.
-
I have copied the DummyQueuedJob to my own module as a test and changed the namespace and nothing else.
-
I have confirmed the copy of the job appears in the Jobs section drop-down.
-
I have added my test job to the queue and received a message saying it has successfully been queued.
But it stays with a status of “New” indefinitely and the following error appears in the logs:
ERROR [Emergency]: Uncaught TypeError: Symbiote\QueuedJobs\Services\QueuedJobService::handleBrokenJobException(): Argument #2 ($job) must be of type Symbiote\QueuedJobs\Services\QueuedJob, null given, called in /var/www/localhost/htdocs/vendor/symbiote/silverstripe-queuedjobs/src/Services/QueuedJobService.php on line 996
I feel like I should be adding something somewhere else to get it to run but can’t see where that should be? Can anyone point me in the right direction?
Thanks