You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scheduler.rst
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -869,7 +869,8 @@ While this behavior may not necessarily pose a problem, there is a possibility t
869
869
870
870
That's why the scheduler allows to remember the last execution date of a message
871
871
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::
873
874
874
875
// src/Scheduler/SaleTaskProvider.php
875
876
namespace App\Scheduler;
@@ -889,7 +890,8 @@ This allows the system to retain the state of the schedule, ensuring that when a
889
890
}
890
891
}
891
892
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::
893
895
894
896
// src/Scheduler/SaleTaskProvider.php
895
897
namespace App\Scheduler;
@@ -910,6 +912,10 @@ With ``stateful`` option, All missed messages will be handled, If you nedd handl
910
912
}
911
913
}
912
914
915
+
.. versionadded:: 7.2
916
+
917
+
The ``processOnlyLastMissedRun`` option was introduced in Symfony 7.2.
918
+
913
919
To scale your schedules more effectively, you can use multiple workers. In such
914
920
cases, a good practice is to add a :doc:`lock </components/lock>` to prevent the
0 commit comments