schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Add support for Symfony 4.4, update project dependencies, update test… #259

Open DaanBiesterbos opened 3 years ago

DaanBiesterbos commented 3 years ago

Fix deprecation notices

Remaining issues:

y4roc commented 3 years ago

@schmittjoh - Please merge it and release it as 3.1.1

aeyoll commented 3 years ago

Hello @schmittjoh Can we get an update on this PR please? Thanks a lot

DaanBiesterbos commented 3 years ago

@schmittjoh I am not actively developing this bundle but you can add me as a maitainer if you like. It seems like you are very busy working on other things ;-)

fnagel commented 2 years ago

I was running in following issue when testing the PR:

Error thrown while running command "jms-job-queue:run --max-runtime=300 --env=prod". Message: "Class 'Symfony\Component\Process\Process' not found"

It was needed to add composer require symfony/process. Please note the error did only pop-up when I was using PROD environment. Seems in DEV it was somehow installed due to a dev dependency.

After that I still had issues when requesting a job detail view:

[2022-02-21T09:10:00.189651+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "The "JMS\JobQueueBundle\Controller\JobController::getParameter()" method is missing a parameter bag to work properly. Did you forget to register your controller as a service subscriber? This can be fixed either by using autoconfiguration or by manually wiring a "parameter_bag" in the service locator passed to the controller." at /var/www/html/vendor/symfony/framework-bundle/Controller/AbstractController.php line 68 {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException(code: 0): The \"JMS\\JobQueueBundle\\Controller\\JobController::getParameter()\" method is missing a parameter bag to work properly. Did you forget to register your controller as a service subscriber? This can be fixed either by using autoconfiguration or by manually wiring a \"parameter_bag\" in the service locator passed to the controller. at /var/www/html/vendor/symfony/framework-bundle/Controller/AbstractController.php:68)"} []

Any idea what I'm doing wrong here?