Skip to content

Add max_total_charge_usd to task start() and call() #1096

Closed

Description

@vdusek

POST /v2/actor-tasks/{actorTaskId}/runs accepts maxTotalChargeUsd, and the JS client sends it from task.start(). TaskClient and TaskClientAsync don't take it in start() or call(), so a task run can't be given a charge limit.

Add max_total_charge_usd: Decimal | None = None to both methods in both classes, as in ActorClient.start() and call().

The SDK needs it for apify/apify-sdk-python#1155, where named child runs share the parent's charge budget. A named Actor.call_task() under a budget set by the user raises RuntimeError for now, since the task run can't get a limit.

✍️ Drafted by Claude Code

Activity

  1. added
    enhancement
    t-tooling
    on Oct 7, 2026
  2. self-assigned this
    on Oct 7, 2026
  3. added a commit that references this issue on Oct 7, 2026
    966d3d6
  4. vdusek commented on Oct 8, 2026

    @vdusek
    ContributorAuthor

    resolved by #1097

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementt-tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions