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
Add mechanism to control non-determinism in retries (#159)
* Add mechanism to control non-determinism in retries
Signed-off-by: Lucas Caparelli <[email protected]>
* Make suggested changes
Signed-off-by: Lucas Caparelli <[email protected]>
* Add Lucas Caparelli as contributor
Signed-off-by: Lucas Caparelli <[email protected]>
* Add relative jitter support
Signed-off-by: Lucas Caparelli <[email protected]>
Copy file name to clipboardExpand all lines: schema/workflow.json
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -339,6 +339,12 @@
339
339
"minimum": 0,
340
340
"minLength": 0,
341
341
"description": "Maximum number of retry attempts. Value of 0 means no retries are performed"
342
+
},
343
+
"jitter": {
344
+
"type": ["number","string"],
345
+
"minimum": 0.0,
346
+
"maximum": 1.0,
347
+
"description": "If float type, maximum amount of random time added or subtracted from the delay between each retry relative to total delay (between 0.0 and 1.0). If string type, absolute maximum amount of random time added or subtracted from the delay between each retry (ISO 8601 duration format)"
Copy file name to clipboardExpand all lines: specification.md
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1332,6 +1332,7 @@ transition:
1332
1332
| interval | Interval value for retry (ISO 8601 repeatable format). For example: "R5/PT15M"(Starting from now repeat 5 times with 15 minute intervals)| string | no |
1333
1333
| multiplier | Multiplier value by which interval increases during each attempt (ISO 8601 time format). For example: "PT3S"meaning the second attempt interval is increased by 3 seconds, the third interval by 6 seconds and so on | string | no |
1334
1334
| maxAttempts | Maximum number of retry attempts. Value of 0 means no retries are performed | string or integer | no |
1335
+
| jitter | If float type, maximum amount of random time added or subtracted from the delay between each retry relative to total delay (between 0.0 and 1.0). If string type, absolute maximum amount of random time added or subtracted from the delay between each retry (ISO 8601 duration format) | float or string | no |
1335
1336
1336
1337
<details><summary><strong>Click to view example definition</strong></summary>
0 commit comments