Gracefully stop scheduler #294
-
Situation Currently I'm using scheduler as separate service in my docker compose setup. All my scheduled tasks are send to the message queue. Consuming the messages is also done in a separate service. # docker-compose.yml
version: '3.9'
services:
phpfpm:
extends:
file: common-services.yml
service: php-base
restart: always
messenger:
extends:
file: common-services.yml
service: php-base
depends_on:
- rabbitmq
restart: 'no'
command: bin/console messenger:consume -vv async
schedule:
extends:
file: common-services.yml
service: php-base
depends_on:
- rabbitmq
restart: 'no'
command: bin/console scheduler:consume --wait --force -vv Messenger has a command called Now for the Question Thinking about the above, I got the following questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @ToshY 👋🏻 I agree on the fact that |
Beta Was this translation helpful? Give feedback.
-
Hi @ToshY 👋🏻 The Src: https://github.com/Guikingone/SchedulerBundle/blob/main/src/Command/StopWorkerCommand.php |
Beta Was this translation helpful? Give feedback.
Hi @ToshY 👋🏻
I agree on the fact that
SchedulerBundle
can benefit from this type of feature, this is not planned in the current roadmap for0.10
but if you want to work on it, feel free to, I'm going to open an issue related to this discussion, this way, we can track the development of it 🙂