4
4
import random
5
5
import string
6
6
import time
7
- from typing import Any
7
+ from typing import TYPE_CHECKING , Any
8
8
9
9
from apify_shared .utils import filter_out_none_values_recursively , ignore_docs , parse_date_fields
10
10
15
15
from apify_client .clients .resource_clients .log import LogClient , LogClientAsync
16
16
from apify_client .clients .resource_clients .request_queue import RequestQueueClient , RequestQueueClientAsync
17
17
18
+ if TYPE_CHECKING :
19
+ from decimal import Decimal
18
20
19
21
class RunClient (ActorJobBaseClient ):
20
22
"""Sub-client for manipulating a single Actor run."""
@@ -132,6 +134,8 @@ def resurrect(
132
134
build : str | None = None ,
133
135
memory_mbytes : int | None = None ,
134
136
timeout_secs : int | None = None ,
137
+ max_items : int | None = None ,
138
+ max_total_charge_usd : Decimal | None = None ,
135
139
) -> dict :
136
140
"""Resurrect a finished Actor run.
137
141
@@ -147,6 +151,10 @@ def resurrect(
147
151
uses the same memory limit as before.
148
152
timeout_secs: New timeout for the resurrected run, in seconds. By default, the resurrected run uses the
149
153
same timeout as before.
154
+ max_items: Maximum number of items that the resurrected pay-per-result run will return. By default, the resurrected run
155
+ uses the same limit as before. Limit can be only increased.
156
+ max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the resurrected run
157
+ uses the same limit as before. Limit can be only increased.
150
158
151
159
Returns:
152
160
The Actor run data.
@@ -155,6 +163,8 @@ def resurrect(
155
163
build = build ,
156
164
memory = memory_mbytes ,
157
165
timeout = timeout_secs ,
166
+ maxItems = max_items ,
167
+ maxTotalChargeUsd = max_total_charge_usd ,
158
168
)
159
169
160
170
response = self .http_client .call (
0 commit comments