@@ -192,22 +192,23 @@ For example::
192
192
193
193
RecurringMessage::cron('@daily', new Message());
194
194
195
- Hashed Cron Expression
196
- ~~~~~~~~~~~~~~~~~~~~~~
195
+ Hashed Cron Expressions
196
+ ·······················
197
197
198
- If you have many trigger scheduled at same time (for example, at midnight, ``0 0 * * * ``)
199
- this will create a very long running schedules list right at this time.
198
+ If you have many triggers scheduled at same time (for example, at midnight, ``0 0 * * * ``)
199
+ this will create a very long running list of schedules at that exact time.
200
200
This may cause an issue if a task has a memory leak.
201
201
202
- You can add a ``#``(for hash) symbol in expression to generate random value. The value
203
- is deterministic based on the message. This means that while the value is random, it is
204
- predictable and consistent . A message with string representation ``my task ``
202
+ You can add a hash symbol ( ``# ``) in expressions to generate random values.
203
+ Athough the values are random, they are predictable and consistent because they
204
+ are generated based on the message . A message with string representation ``my task ``
205
205
and a defined frequency of ``# # * * * `` will have an idempotent frequency
206
206
of ``56 20 * * * `` (every day at 8:56pm).
207
207
208
- A hash range ``#(x-y) `` can also be used. For example, ``# #(0-7) * * * `` means daily,
209
- some time between midnight and 7am. Using the ``# `` without a range creates a range
210
- of any valid value for the field. ``# # # # # `` is short for ``#(0-59) #(0-23) #(1-28)
208
+ You can also use hash ranges (``#(x-y) ``) to define the list of possible values
209
+ for that random part. For example, ``# #(0-7) * * * `` means daily, some time
210
+ between midnight and 7am. Using the ``# `` without a range creates a range of any
211
+ valid value for the field. ``# # # # # `` is short for ``#(0-59) #(0-23) #(1-28)
211
212
#(1-12) #(0-6) ``.
212
213
213
214
You can also use some special values that represent common hashed cron expressions:
0 commit comments