@@ -162,6 +162,7 @@ def resurrect(
162
162
timeout_secs : int | None = None ,
163
163
max_items : int | None = None ,
164
164
max_total_charge_usd : Decimal | None = None ,
165
+ restart_on_error : bool | None = None ,
165
166
) -> dict :
166
167
"""Resurrect a finished Actor run.
167
168
@@ -181,6 +182,8 @@ def resurrect(
181
182
resurrected run uses the same limit as before. Limit can be only increased.
182
183
max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the
183
184
resurrected run uses the same limit as before. Limit can be only increased.
185
+ restart_on_error: Determines whether the resurrected run will be restarted if it fails.
186
+ By default, the resurrected run uses the same setting as before.
184
187
185
188
Returns:
186
189
The Actor run data.
@@ -191,6 +194,7 @@ def resurrect(
191
194
timeout = timeout_secs ,
192
195
maxItems = max_items ,
193
196
maxTotalChargeUsd = max_total_charge_usd ,
197
+ restartOnError = restart_on_error ,
194
198
)
195
199
196
200
response = self .http_client .call (
@@ -483,6 +487,7 @@ async def resurrect(
483
487
timeout_secs : int | None = None ,
484
488
max_items : int | None = None ,
485
489
max_total_charge_usd : Decimal | None = None ,
490
+ restart_on_error : bool | None = None ,
486
491
) -> dict :
487
492
"""Resurrect a finished Actor run.
488
493
@@ -502,6 +507,8 @@ async def resurrect(
502
507
resurrected run uses the same limit as before. Limit can be only increased.
503
508
max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the
504
509
resurrected run uses the same limit as before. Limit can be only increased.
510
+ restart_on_error: Determines whether the resurrected run will be restarted if it fails.
511
+ By default, the resurrected run uses the same setting as before.
505
512
506
513
Returns:
507
514
The Actor run data.
@@ -512,6 +519,7 @@ async def resurrect(
512
519
timeout = timeout_secs ,
513
520
maxItems = max_items ,
514
521
maxTotalChargeUsd = max_total_charge_usd ,
522
+ restartOnError = restart_on_error ,
515
523
)
516
524
517
525
response = await self .http_client .call (
0 commit comments