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
|`Nats-Schedule`| The schedule the message will be published on |
142
-
|`Nats-Schedule-Target`| The subject the message will be delivered to |
143
-
|`Nats-Schedule-Source`| Instructs the schedule to read the last message on the given subject and publish it. If the Subject is empty, nothing is published, wildcards are not supported |
144
-
|`Nats-Schedule-TTL`| When publishing sets a TTL on the message if the stream supports per message TTLs ||
|`Nats-Schedule`| The schedule the message will be published on |
142
+
|`Nats-Schedule-Target`| The subject the message will be delivered to |
143
+
|`Nats-Schedule-Source`| Instructs the schedule to read the last message on the given subject and publish it. If the Subject is empty, nothing is published, wildcards are not supported |
144
+
|`Nats-Schedule-TTL`| When publishing sets a TTL on the message if the stream supports per message TTLs |
145
+
|`Nats-Schedule-Time-Zone`| The time zone used forthe Cron schedule. If not specified, the Cron schedule will bein UTC. Not allowed to be used if the schedule is not a Cron schedule. |
145
146
146
147
Messages that the Schedules produce will have these headers setin addition to any other headers on that was found in the message.
147
148
@@ -157,6 +158,12 @@ Valid schedule header can match normal cron behavior as defined earlier
157
158
158
159
All time calculations will be donein UTC, a Cron schedule like `* 0 5 ***` means exactly 5AM UTC.
159
160
161
+
Cron schedules may use different time zones, if specified in the `Nats-Schedule-Time-Zone` header. Although time zones
162
+
are supported, it's not recommended to use Cron schedules that trigger during daylight saving time (DST) changes. If
163
+
time moves forward due to DST, a schedule could be skipped if its time was not reached. If time moves backward due to
164
+
DST, a schedule could be executed twice if its time was reached twice. Additionally, the server's time zones need to be
165
+
kept up to date; otherwise servers might not run the Cron schedule at the expected time.
0 commit comments