Skip to content

Commit 60fc619

Browse files
committed
feat: add restartOnError to run and resurrect options
1 parent cc55e57 commit 60fc619

8 files changed

+89
-0
lines changed

apify-api/openapi/paths/actor-runs/actor-runs@{runId}@resurrect.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ post:
5454
example: 10
5555
description: |
5656
Optional maximum cost of the run, in USD. Used for pay-per-event Actors. The value can only be increased beyond the value specified when the Actor run was started.
57+
- name: restartOnError
58+
in: query
59+
required: false
60+
schema:
61+
type: boolean
62+
example: false
63+
description: |
64+
Determines whether the resurrected run will be restarted if it fails. By default, the resurrected run uses the same setting as before.
5765
responses:
5866
'200':
5967
description: ''

apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@run-sync-get-dataset-items.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,15 @@ post:
476476
type: number
477477
format: double
478478
example: 5
479+
- name: restartOnError
480+
in: query
481+
description: |
482+
Determines whether the run will be restarted if it fails.
483+
style: form
484+
explode: true
485+
schema:
486+
type: boolean
487+
example: false
479488
- name: build
480489
in: query
481490
description: |

apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@run-sync.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,15 @@ post:
223223
type: number
224224
format: double
225225
example: 5
226+
- name: restartOnError
227+
in: query
228+
description: |
229+
Determines whether the run will be restarted if it fails.
230+
style: form
231+
explode: true
232+
schema:
233+
type: boolean
234+
example: false
226235
- name: build
227236
in: query
228237
description: |

apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@runs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@ post:
215215
type: number
216216
format: double
217217
example: 5
218+
- name: restartOnError
219+
in: query
220+
description: |
221+
Determines whether the run will be restarted if it fails.
222+
style: form
223+
explode: true
224+
schema:
225+
type: boolean
226+
example: false
218227
- name: build
219228
in: query
220229
description: |

apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ post:
8888
type: number
8989
format: double
9090
example: 5
91+
- name: restartOnError
92+
in: query
93+
description: |
94+
Determines whether the run will be restarted if it fails.
95+
style: form
96+
explode: true
97+
schema:
98+
type: boolean
99+
example: false
91100
- name: build
92101
in: query
93102
description: |
@@ -490,6 +499,15 @@ get:
490499
type: number
491500
format: double
492501
example: 5
502+
- name: restartOnError
503+
in: query
504+
description: |
505+
Determines whether the run will be restarted if it fails.
506+
style: form
507+
explode: true
508+
schema:
509+
type: boolean
510+
example: false
493511
- name: build
494512
in: query
495513
description: |

apify-api/openapi/paths/actors/acts@{actorId}@run-sync.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ post:
9494
type: number
9595
format: double
9696
example: 5
97+
- name: restartOnError
98+
in: query
99+
description: |
100+
Determines whether the run will be restarted if it fails.
101+
style: form
102+
explode: true
103+
schema:
104+
type: boolean
105+
example: false
97106
- name: build
98107
in: query
99108
description: |
@@ -255,6 +264,15 @@ get:
255264
type: number
256265
format: double
257266
example: 5
267+
- name: restartOnError
268+
in: query
269+
description: |
270+
Determines whether the run will be restarted if it fails.
271+
style: form
272+
explode: true
273+
schema:
274+
type: boolean
275+
example: false
258276
- name: build
259277
in: query
260278
description: |

apify-api/openapi/paths/actors/acts@{actorId}@runs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ post:
208208
type: number
209209
format: double
210210
example: 5
211+
- name: restartOnError
212+
in: query
213+
description: |
214+
Determines whether the run will be restarted if it fails.
215+
style: form
216+
explode: true
217+
schema:
218+
type: boolean
219+
example: false
211220
- name: build
212221
in: query
213222
description: |

apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@resurrect.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ post:
6868
type: number
6969
format: double
7070
example: 256
71+
- name: restartOnError
72+
in: query
73+
description: |
74+
Determines whether the resurrected run will be restarted if it fails. By default, the resurrected run uses the same setting as before.
75+
style: form
76+
explode: true
77+
schema:
78+
type: boolean
79+
example: false
7180
responses:
7281
'200':
7382
description: ''

0 commit comments

Comments
 (0)