SchedulerBundle: bug(command): scheduler:consume --wait no longer works

Hi @Guikingone,

When I run the scheduler in --wait mode it gives me back control and no longer waits every minute

developer@0461266b29f1:/var/www/app$ bin/console scheduler:consume --wait -vv

 ! [NOTE] The worker will wait for tasks every minutes

 // Quit the worker with CONTROL-C.

09:48:26 INFO      [app] The worker has been started ["failedTasks" => 0,"lastExecutedTask" => null]
09:48:26 INFO      [app] The worker has been stopped ["failedTasks" => 0,"lastExecutedTask" => null]
developer@0461266b29f1:/var/www/app$

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (13 by maintainers)

Most upvoted comments

Hi @jvancoillie πŸ‘‹πŸ»

I’ve moved the sleep call issue to a new issue πŸ™‚

Link: https://github.com/Guikingone/SchedulerBundle/issues/165

maybe this is normal because it should not contain the dev-issue/159 fix, right?

dev-issue/159 is not implemented for now, that could be the reason, you’re right πŸ™‚

Hi, here is my scheduler.yaml file.

scheduler_bundle:
    transport:
        dsn: 'doctrine://default?execution_mode=first_in_first_out&table_name=scheduler_tasks'