Skip to main content

RunClientAsync

Async sub-client for manipulating a single Actor run.

Index

Methods

abort

  • async abort(*, gracefully): dict

charge

  • async charge(event_name, count, idempotency_key): dict

dataset

delete

  • async delete(): None

get

  • async get(): dict | None

key_value_store

log

metamorph

  • async metamorph(*, target_actor_id, target_actor_build, run_input, content_type): dict

reboot

  • async reboot(): dict

request_queue

resurrect

  • async resurrect(*, build, memory_mbytes, timeout_secs): dict
  • Resurrect a finished Actor run.

    Only finished runs, i.e. runs with status FINISHED, FAILED, ABORTED and TIMED-OUT can be resurrected. Run status will be updated to RUNNING and its container will be restarted with the same default storages.

    https://docs.apify.com/api/v2#/reference/actor-runs/resurrect-run/resurrect-run


    Parameters

    • keyword-onlybuild: str | None = None
    • keyword-onlymemory_mbytes: int | None = None
    • keyword-onlytimeout_secs: int | None = None

    Returns dict

update

  • async update(*, status_message, is_status_message_terminal): dict

wait_for_finish

  • async wait_for_finish(*, wait_secs): dict | None
  • Wait synchronously until the run finishes or the server times out.


    Parameters

    • keyword-onlywait_secs: int | None = None

    Returns dict | None