Skip to content

Commit 31a1a38

Browse files
committed
fix
1 parent 4220158 commit 31a1a38

File tree

1 file changed

+8
-0
lines changed
  • src/apify_client/clients/resource_clients

1 file changed

+8
-0
lines changed

src/apify_client/clients/resource_clients/run.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ async def resurrect(
396396
build: str | None = None,
397397
memory_mbytes: int | None = None,
398398
timeout_secs: int | None = None,
399+
max_items: int | None = None,
400+
max_total_charge_usd: Decimal | None = None,
399401
) -> dict:
400402
"""Resurrect a finished Actor run.
401403
@@ -411,6 +413,10 @@ async def resurrect(
411413
uses the same memory limit as before.
412414
timeout_secs: New timeout for the resurrected run, in seconds. By default, the resurrected run uses the
413415
same timeout as before.
416+
max_items: Maximum number of items that the resurrected pay-per-result run will return. By default, the
417+
resurrected run uses the same limit as before. Limit can be only increased.
418+
max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the
419+
resurrected run uses the same limit as before. Limit can be only increased.
414420
415421
Returns:
416422
The Actor run data.
@@ -419,6 +425,8 @@ async def resurrect(
419425
build=build,
420426
memory=memory_mbytes,
421427
timeout=timeout_secs,
428+
maxItems=max_items,
429+
maxTotalChargeUsd=max_total_charge_usd,
422430
)
423431

424432
response = await self.http_client.call(

0 commit comments

Comments
 (0)