Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apify_client/clients/resource_clients/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def get_actor_representation(
'seoTitle': seo_title,
'seoDescription': seo_description,
'versions': versions,
'restartOnError': restart_on_error,
'isPublic': is_public,
'isDeprecated': is_deprecated,
'isAnonymouslyRunnable': is_anonymously_runnable,
Expand All @@ -79,6 +78,7 @@ def get_actor_representation(
'maxItems': default_run_max_items,
'memoryMbytes': default_run_memory_mbytes,
'timeoutSecs': default_run_timeout_secs,
'restartOnError': restart_on_error,
'forcePermissionLevel': default_run_force_permission_level,
},
'exampleRunInput': {
Expand Down
8 changes: 8 additions & 0 deletions src/apify_client/clients/resource_clients/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def resurrect(
timeout_secs: int | None = None,
max_items: int | None = None,
max_total_charge_usd: Decimal | None = None,
restart_on_error: bool | None = None,
) -> dict:
"""Resurrect a finished Actor run.

Expand All @@ -181,6 +182,8 @@ def resurrect(
resurrected run uses the same limit as before. Limit can be only increased.
max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the
resurrected run uses the same limit as before. Limit can be only increased.
restart_on_error: Determines whether the resurrected run will be restarted if it fails.
By default, the resurrected run uses the same setting as before.

Returns:
The Actor run data.
Expand All @@ -191,6 +194,7 @@ def resurrect(
timeout=timeout_secs,
maxItems=max_items,
maxTotalChargeUsd=max_total_charge_usd,
restartOnError=restart_on_error,
)

response = self.http_client.call(
Expand Down Expand Up @@ -483,6 +487,7 @@ async def resurrect(
timeout_secs: int | None = None,
max_items: int | None = None,
max_total_charge_usd: Decimal | None = None,
restart_on_error: bool | None = None,
) -> dict:
"""Resurrect a finished Actor run.

Expand All @@ -502,6 +507,8 @@ async def resurrect(
resurrected run uses the same limit as before. Limit can be only increased.
max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the
resurrected run uses the same limit as before. Limit can be only increased.
restart_on_error: Determines whether the resurrected run will be restarted if it fails.
By default, the resurrected run uses the same setting as before.

Returns:
The Actor run data.
Expand All @@ -512,6 +519,7 @@ async def resurrect(
timeout=timeout_secs,
maxItems=max_items,
maxTotalChargeUsd=max_total_charge_usd,
restartOnError=restart_on_error,
)

response = await self.http_client.call(
Expand Down
Loading