@@ -636,6 +636,7 @@ def prepare_batch_message_body(messages: List[BatchRequest]) -> str:
636636 callback_headers = msg .get ("callback_headers" ),
637637 failure_callback_headers = msg .get ("failure_callback_headers" ),
638638 retries = msg .get ("retries" ),
639+ retry_delay = msg .get ("retry_delay" ),
639640 callback = msg .get ("callback" ),
640641 failure_callback = msg .get ("failure_callback" ),
641642 delay = msg .get ("delay" ),
@@ -846,12 +847,12 @@ def publish(
846847
847848 By default, the `retryDelay` is exponential backoff.
848849 More details can be found in: https://upstash.com/docs/qstash/features/retry.
849-
850+
850851 The `retryDelay` option allows you to customize the delay (in milliseconds) between retry attempts when message delivery fails.
851-
852+
852853 You can use mathematical expressions and the following built-in functions to calculate the delay dynamically.
853854 The special variable `retried` represents the current retry attempt count (starting from 0).
854-
855+
855856 Supported functions:
856857 - `pow`
857858 - `sqrt`
@@ -862,7 +863,7 @@ def publish(
862863 - `round`
863864 - `min`
864865 - `max`
865-
866+
866867 Examples of valid `retryDelay` values:
867868 ```py
868869 1000 # 1 second
@@ -974,12 +975,12 @@ def publish_json(
974975
975976 By default, the `retryDelay` is exponential backoff.
976977 More details can be found in: https://upstash.com/docs/qstash/features/retry.
977-
978+
978979 The `retryDelay` option allows you to customize the delay (in milliseconds) between retry attempts when message delivery fails.
979-
980+
980981 You can use mathematical expressions and the following built-in functions to calculate the delay dynamically.
981982 The special variable `retried` represents the current retry attempt count (starting from 0).
982-
983+
983984 Supported functions:
984985 - `pow`
985986 - `sqrt`
@@ -990,7 +991,7 @@ def publish_json(
990991 - `round`
991992 - `min`
992993 - `max`
993-
994+
994995 Examples of valid `retryDelay` values:
995996 ```py
996997 1000 # 1 second
@@ -1089,12 +1090,12 @@ def enqueue(
10891090
10901091 By default, the `retryDelay` is exponential backoff.
10911092 More details can be found in: https://upstash.com/docs/qstash/features/retry.
1092-
1093+
10931094 The `retryDelay` option allows you to customize the delay (in milliseconds) between retry attempts when message delivery fails.
1094-
1095+
10951096 You can use mathematical expressions and the following built-in functions to calculate the delay dynamically.
10961097 The special variable `retried` represents the current retry attempt count (starting from 0).
1097-
1098+
10981099 Supported functions:
10991100 - `pow`
11001101 - `sqrt`
@@ -1105,7 +1106,7 @@ def enqueue(
11051106 - `round`
11061107 - `min`
11071108 - `max`
1108-
1109+
11091110 Examples of valid `retryDelay` values:
11101111 ```py
11111112 1000 # 1 second
@@ -1208,12 +1209,12 @@ def enqueue_json(
12081209
12091210 By default, the `retryDelay` is exponential backoff.
12101211 More details can be found in: https://upstash.com/docs/qstash/features/retry.
1211-
1212+
12121213 The `retryDelay` option allows you to customize the delay (in milliseconds) between retry attempts when message delivery fails.
1213-
1214+
12141215 You can use mathematical expressions and the following built-in functions to calculate the delay dynamically.
12151216 The special variable `retried` represents the current retry attempt count (starting from 0).
1216-
1217+
12171218 Supported functions:
12181219 - `pow`
12191220 - `sqrt`
@@ -1224,7 +1225,7 @@ def enqueue_json(
12241225 - `round`
12251226 - `min`
12261227 - `max`
1227-
1228+
12281229 Examples of valid `retryDelay` values:
12291230 ```py
12301231 1000 # 1 second
0 commit comments