From b38b1fac1fefda1706e10c32d06d9bade6952af7 Mon Sep 17 00:00:00 2001 From: pgorod Date: Fri, 6 Dec 2024 12:32:39 +0000 Subject: [PATCH] [Scheduler] Add some pointers regarding worker processes deployment --- scheduler.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scheduler.rst b/scheduler.rst index 160ba26e0cb..8956ff2fe8d 100644 --- a/scheduler.rst +++ b/scheduler.rst @@ -818,6 +818,14 @@ the Messenger component: .. image:: /_images/components/scheduler/generate_consume.png :alt: Symfony Scheduler - generate and consume +.. tip:: + + Depending on your deployment scenario, instead of manually executing this + Messenger worker process, you might want to run it with cron, supervisor or systemd, + and ensure workers are running at all times. Check out the `Deploying to Production`_ + section of the Messenger component documentation. + + Creating a Consumer Programmatically ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -981,6 +989,7 @@ helping you identify those messages when needed. to redispatched messages was introduced in Symfony 6.4. .. _`MakerBundle`: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html +.. _`Deploying to Production`: https://symfony.com/doc/current/messenger.html#deploying-to-production .. _`Memoizing`: https://en.wikipedia.org/wiki/Memoization .. _`cron command-line utility`: https://en.wikipedia.org/wiki/Cron .. _`crontab.guru website`: https://crontab.guru/