@@ -958,7 +958,8 @@ async def start(
958958 the run uses the build specified in the default run configuration for the Actor (typically latest).
959959 max_items: Maximum number of dataset items you are charged for, for pay-per-result Actors. It caps the
960960 charge, not the output, so the run can return fewer or more items than this.
961- max_total_charge_usd: A limit on the total charged amount for pay-per-event Actors.
961+ max_total_charge_usd: A limit on the total charged amount, in USD. Once the run exceeds it, the platform
962+ aborts the run, which takes a few seconds, so the final charge can slightly overshoot the limit.
962963 restart_on_error: If true, the Actor run process will be restarted whenever it exits with
963964 a non-zero status code.
964965 memory_mbytes: Memory limit for the run, in megabytes. By default, the run uses a memory limit specified
@@ -1058,8 +1059,10 @@ async def resurrect(
10581059 timeout.
10591060 max_items: Maximum number of items that the resurrected pay-per-result run will return. By default, the
10601061 resurrected run uses the same limit as before. The limit can only be increased.
1061- max_total_charge_usd: Maximum cost for the resurrected pay-per-event run in USD. By default, the resurrected
1062- run uses the same limit as before. The limit can only be increased.
1062+ max_total_charge_usd: A limit on the total charged amount of the resurrected run, in USD. Once the run
1063+ exceeds it, the platform aborts the run, which takes a few seconds, so the final charge can slightly
1064+ overshoot the limit. By default, the resurrected run uses the same limit as before. The limit can only
1065+ be increased.
10631066 restart_on_error: If true, the resurrected run process will be restarted whenever it exits with a non-zero
10641067 status code. By default, the resurrected run uses the same setting as before.
10651068
@@ -1109,7 +1112,8 @@ async def call(
11091112 the run uses the build specified in the default run configuration for the Actor (typically latest).
11101113 max_items: Maximum number of dataset items you are charged for, for pay-per-result Actors. It caps the
11111114 charge, not the output, so the run can return fewer or more items than this.
1112- max_total_charge_usd: A limit on the total charged amount for pay-per-event Actors.
1115+ max_total_charge_usd: A limit on the total charged amount, in USD. Once the run exceeds it, the platform
1116+ aborts the run, which takes a few seconds, so the final charge can slightly overshoot the limit.
11131117 restart_on_error: If true, the Actor run process will be restarted whenever it exits with
11141118 a non-zero status code.
11151119 memory_mbytes: Memory limit for the run, in megabytes. By default, the run uses a memory limit specified
@@ -1161,6 +1165,7 @@ async def start_task(
11611165 * ,
11621166 build : str | None = None ,
11631167 max_items : int | None = None ,
1168+ max_total_charge_usd : Decimal | None = None ,
11641169 restart_on_error : bool | None = None ,
11651170 memory_mbytes : int | None = None ,
11661171 timeout : timedelta | Literal ['inherit' ] | None = None ,
@@ -1183,6 +1188,8 @@ async def start_task(
11831188 the run uses the build specified in the default run configuration for the Actor (typically latest).
11841189 max_items: Maximum number of dataset items you are charged for, for pay-per-result Actors. It caps the
11851190 charge, not the output, so the run can return fewer or more items than this.
1191+ max_total_charge_usd: A limit on the total charged amount, in USD. Once the run exceeds it, the platform
1192+ aborts the run, which takes a few seconds, so the final charge can slightly overshoot the limit.
11861193 restart_on_error: If true, the Task run process will be restarted whenever it exits with
11871194 a non-zero status code.
11881195 memory_mbytes: Memory limit for the run, in megabytes. By default, the run uses a memory limit specified
@@ -1203,6 +1210,7 @@ async def start_task(
12031210 task_input = task_input ,
12041211 build = build ,
12051212 max_items = max_items ,
1213+ max_total_charge_usd = max_total_charge_usd ,
12061214 restart_on_error = restart_on_error ,
12071215 memory_mbytes = memory_mbytes ,
12081216 run_timeout = self ._resolve_run_timeout (timeout ),
@@ -1217,6 +1225,7 @@ async def call_task(
12171225 * ,
12181226 build : str | None = None ,
12191227 max_items : int | None = None ,
1228+ max_total_charge_usd : Decimal | None = None ,
12201229 restart_on_error : bool | None = None ,
12211230 memory_mbytes : int | None = None ,
12221231 timeout : timedelta | Literal ['inherit' ] | None = None ,
@@ -1239,6 +1248,8 @@ async def call_task(
12391248 the run uses the build specified in the default run configuration for the Actor (typically latest).
12401249 max_items: Maximum number of dataset items you are charged for, for pay-per-result Actors. It caps the
12411250 charge, not the output, so the run can return fewer or more items than this.
1251+ max_total_charge_usd: A limit on the total charged amount, in USD. Once the run exceeds it, the platform
1252+ aborts the run, which takes a few seconds, so the final charge can slightly overshoot the limit.
12421253 restart_on_error: If true, the Task run process will be restarted whenever it exits with
12431254 a non-zero status code.
12441255 memory_mbytes: Memory limit for the run, in megabytes. By default, the run uses a memory limit specified
@@ -1261,6 +1272,7 @@ async def call_task(
12611272 task_input = task_input ,
12621273 build = build ,
12631274 max_items = max_items ,
1275+ max_total_charge_usd = max_total_charge_usd ,
12641276 restart_on_error = restart_on_error ,
12651277 memory_mbytes = memory_mbytes ,
12661278 run_timeout = self ._resolve_run_timeout (timeout ),
0 commit comments