Skip to main content

BuildClientAsync

Sub-client for managing a specific Actor build.

Provides methods to manage a specific Actor build, e.g. get it, abort it, or wait for it to finish. Obtain an instance via an appropriate method on the ApifyClientAsync class.

Hierarchy

Index

Methods

__init__

  • __init__(*, base_url, public_base_url, http_client, resource_path, client_registry, resource_id, params): None
  • Initialize the resource client.


    Parameters

    • keyword-onlybase_url: str

      API base URL.

    • keyword-onlypublic_base_url: str

      Public CDN base URL.

    • keyword-onlyhttp_client: HttpClientAsync

      HTTP client for making requests.

    • keyword-onlyresource_path: str

      Resource endpoint path (e.g., 'actors', 'datasets').

    • keyword-onlyclient_registry: ClientRegistryAsync

      Bundle of client classes for dependency injection.

    • optionalkeyword-onlyresource_id: str | None = None

      Optional resource ID for single-resource clients.

    • optionalkeyword-onlyparams: dict | None = None

      Optional default parameters for all requests.

    Returns None

abort

delete

  • async delete(): None

get

  • async get(): Build | None

get_open_api_definition

  • async get_open_api_definition(): dict

log

wait_for_finish

  • async wait_for_finish(*, wait_duration): Build | None
  • Wait asynchronously until the build finishes or the server times out.


    Parameters

    • optionalkeyword-onlywait_duration: timedelta | None = None

      How long does the client wait for build to finish. None for indefinite.

    Returns Build | None

    The Actor build data. If the status on the object is not one of the terminal statuses (SUCCEEDED, FAILED, TIMED_OUT, ABORTED), then the build has not yet finished.

Properties

resource_id

resource_id: str | None

Get the resource ID.