TaskClientAsync
Index
Methods
call
Start a task and wait for it to finish before returning the Run object.
It waits indefinitely, unless the wait_secs argument is provided.
https://docs.apify.com/api/v2#/reference/actor-tasks/run-collection/run-task
Parameters
keyword-onlytask_input: dict | None = None
keyword-onlybuild: str | None = None
keyword-onlymax_items: int | None = None
keyword-onlymemory_mbytes: int | None = None
keyword-onlytimeout_secs: int | None = None
keyword-onlywebhooks: list[dict] | None = None
keyword-onlywait_secs: int | None = None
Returns dict | None
delete
Returns None
get
Retrieve the task.
https://docs.apify.com/api/v2#/reference/actor-tasks/task-object/get-task
Returns dict | None
get_input
Retrieve the default input for this task.
https://docs.apify.com/api/v2#/reference/actor-tasks/task-input-object/get-task-input
Returns dict | None
last_run
Retrieve the client for the last run of this task.
Last run is retrieved based on the start time of the runs.
Parameters
keyword-onlystatus: ActorJobStatus | None = None
keyword-onlyorigin: MetaOrigin | None = None
Returns RunClientAsync
runs
Retrieve a client for the runs of this task.
Returns RunCollectionClientAsync
start
Start the task and immediately return the Run object.
https://docs.apify.com/api/v2#/reference/actor-tasks/run-collection/run-task
Parameters
keyword-onlytask_input: dict | None = None
keyword-onlybuild: str | None = None
keyword-onlymax_items: int | None = None
keyword-onlymemory_mbytes: int | None = None
keyword-onlytimeout_secs: int | None = None
keyword-onlywait_for_finish: int | None = None
keyword-onlywebhooks: list[dict] | None = None
Returns dict
update
Update the task with specified fields.
https://docs.apify.com/api/v2#/reference/actor-tasks/task-object/update-task
Parameters
keyword-onlyname: str | None = None
keyword-onlytask_input: dict | None = None
keyword-onlybuild: str | None = None
keyword-onlymax_items: int | None = None
keyword-onlymemory_mbytes: int | None = None
keyword-onlytimeout_secs: int | None = None
keyword-onlytitle: str | None = None
keyword-onlyactor_standby_desired_requests_per_actor_run: int | None = None
keyword-onlyactor_standby_max_requests_per_actor_run: int | None = None
keyword-onlyactor_standby_idle_timeout_secs: int | None = None
keyword-onlyactor_standby_build: str | None = None
keyword-onlyactor_standby_memory_mbytes: int | None = None
Returns dict
update_input
Update the default input for this task.
https://docs.apify.com/api/v2#/reference/actor-tasks/task-input-object/update-task-input
Parameters
keyword-onlytask_input: dict
Returns dict
webhooks
Retrieve a client for webhooks associated with this task.
Returns WebhookCollectionClientAsync
Async sub-client for manipulating a single task.