Skip to content

Commit 0f91311

Browse files
committed
Minor tweaks
1 parent ab9fb64 commit 0f91311

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scheduler.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,8 @@ While this behavior may not necessarily pose a problem, there is a possibility t
869869

870870
That's why the scheduler allows to remember the last execution date of a message
871871
via the ``stateful`` option (and the :doc:`Cache component </components/cache>`).
872-
This allows the system to retain the state of the schedule, ensuring that when a worker is restarted, it resumes from the point it left off.::
872+
This allows the system to retain the state of the schedule, ensuring that when a
873+
worker is restarted, it resumes from the point it left off::
873874

874875
// src/Scheduler/SaleTaskProvider.php
875876
namespace App\Scheduler;
@@ -889,7 +890,8 @@ This allows the system to retain the state of the schedule, ensuring that when a
889890
}
890891
}
891892

892-
With ``stateful`` option, All missed messages will be handled, If you nedd handle your message only once you can use the ``processOnlyLastMissedRun`` option.::
893+
With the ``stateful`` option, all missed messages will be handled. If you need to
894+
handle a message only once, you can use the ``processOnlyLastMissedRun`` option::
893895

894896
// src/Scheduler/SaleTaskProvider.php
895897
namespace App\Scheduler;
@@ -910,6 +912,10 @@ With ``stateful`` option, All missed messages will be handled, If you nedd handl
910912
}
911913
}
912914

915+
.. versionadded:: 7.2
916+
917+
The ``processOnlyLastMissedRun`` option was introduced in Symfony 7.2.
918+
913919
To scale your schedules more effectively, you can use multiple workers. In such
914920
cases, a good practice is to add a :doc:`lock </components/lock>` to prevent the
915921
same task more than once::

0 commit comments

Comments
 (0)