TaskClient
Hierarchy
- ResourceClient- TaskClient
 
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
call
- Parameters- optionalinput: Dictionary
- options: TaskCallOptions = {}
 - Returns Promise<ActorRun>
delete
- Returns Promise<void>
get
- Returns Promise<undefined | Task>
getInput
- Returns Promise<undefined | Dictionary | Dictionary[]>
lastRun
- Parameters- options: TaskLastRunOptions = {}
 - Returns RunClient
runs
start
- Starts a task and immediately returns the Run object. https://docs.apify.com/api/v2#/reference/actor-tasks/run-collection/run-task - Parameters- optionalinput: Dictionary
- options: TaskStartOptions = {}
 - Returns Promise<ActorRun>
update
updateInput
- Parameters- newFields: Dictionary | Dictionary[]
 - Returns Promise<Dictionary | Dictionary[]>
Starts a task and waits for it to finish before returning the Run object. It waits indefinitely, unless the
waitSecsoption is provided. https://docs.apify.com/api/v2#/reference/actor-tasks/run-collection/run-task