@@ -162,6 +162,7 @@ def resurrect(
162162 timeout_secs : int | None = None ,
163163 max_items : int | None = None ,
164164 max_total_charge_usd : Decimal | None = None ,
165+ restart_on_error : bool | None = None ,
165166 ) -> dict :
166167 """Resurrect a finished Actor run.
167168
@@ -181,6 +182,8 @@ def resurrect(
181182 resurrected run uses the same limit as before. Limit can be only increased.
182183 max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the
183184 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.
184187
185188 Returns:
186189 The Actor run data.
@@ -191,6 +194,7 @@ def resurrect(
191194 timeout = timeout_secs ,
192195 maxItems = max_items ,
193196 maxTotalChargeUsd = max_total_charge_usd ,
197+ restartOnError = restart_on_error ,
194198 )
195199
196200 response = self .http_client .call (
@@ -483,6 +487,7 @@ async def resurrect(
483487 timeout_secs : int | None = None ,
484488 max_items : int | None = None ,
485489 max_total_charge_usd : Decimal | None = None ,
490+ restart_on_error : bool | None = None ,
486491 ) -> dict :
487492 """Resurrect a finished Actor run.
488493
@@ -502,6 +507,8 @@ async def resurrect(
502507 resurrected run uses the same limit as before. Limit can be only increased.
503508 max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the
504509 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.
505512
506513 Returns:
507514 The Actor run data.
@@ -512,6 +519,7 @@ async def resurrect(
512519 timeout = timeout_secs ,
513520 maxItems = max_items ,
514521 maxTotalChargeUsd = max_total_charge_usd ,
522+ restartOnError = restart_on_error ,
515523 )
516524
517525 response = await self .http_client .call (
0 commit comments