Skip to content

Add Actor.resurrect() #1162

Description

@vdusek

Actor.abort() wraps aborting another run, but there's no wrapper for resurrecting one. Actor.apify_client.run(run_id).resurrect() works, but it has no token shortcut and no timeout='inherit'.

Add Actor.resurrect() mirroring RunClientAsync.resurrect():

async def resurrect(
    self,
    run_id: str,
    *,
    token: str | None = None,
    build: str | None = None,
    memory_mbytes: int | None = None,
    timeout: timedelta | Literal['inherit'] | None = None,
    max_items: int | None = None,
    max_total_charge_usd: Decimal | None = None,
    restart_on_error: bool | None = None,
) -> Run: ...

timeout='inherit' can reuse the remaining-time logic from start() and call(). JS parity issue: apify/apify-sdk-js#765.

✍️ Drafted by Claude Code

Activity

  1. added
    enhancementNew feature or request.
    t-toolingIssues with this label are in the ownership of the tooling team.
    on Oct 7, 2026
  2. added a commit that references this issue on Oct 7, 2026
    b13c696
  3. self-assigned this
    on Oct 7, 2026
  4. vdusek commented on Oct 7, 2026

    @vdusek
    ContributorAuthor

    Done in #1165.

    ✍️ Drafted by Claude Code

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions