schmittjoh / JMSJobQueueBundle

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

Jobs not starting #138

Closed bigfoot90 closed 7 years ago

bigfoot90 commented 8 years ago

why my jobs do not start? Am I missing something? Symfony version: 2.7.6

Controller:

            $job = new Job('my:sf:command', [], true, 'queue1');
            $this->em->persist($job);
            $this->em->flush($job);

Command:

$ app/console jms-job-queue:run --verbose
Cleaning up stale jobs
Running jobs
Signal Handlers have been installed.
$ cat app/logs/dev.log
[2016-05-17 17:00:51] event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []

thanks you in advance

stephanvierkant commented 8 years ago

Did you check if the Job is persisted? What does the database record look like?

bigfoot90 commented 8 years ago

Yes, it has been persisted, but I don't have the database now since I was needing a fast working solution. Sorry. I leave this issue open for other users, and for a deeper check in the future.

Monpoke commented 8 years ago

I had the same issue. To resolve it, I had to set the date.timezone in the PHP configuration file, for the CLI. Now it works for me!

bigfoot90 commented 8 years ago

@Monpoke +1 Thanks.

kkarkus commented 7 years ago

@bigfoot90 close issue please