Skip to main content

RunClient

Sub-client for manipulating a single Actor run.

Index

Methods

abort

  • abort(*, gracefully): dict

charge

  • charge(event_name, count, idempotency_key): dict

dataset

delete

  • delete(): None

get

  • get(): dict | None

key_value_store

log

metamorph

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

reboot

  • reboot(): dict

request_queue

resurrect

  • 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

  • update(*, status_message, is_status_message_terminal): dict

wait_for_finish

  • 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