RunClient
Hierarchy
- ResourceClient- RunClient
 
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
abort
- Parameters- options: RunAbortOptions = {}
 - Returns Promise<ActorRun>
charge
- Parameters- options: RunChargeOptions
 - Returns Promise<ApifyResponse<Record<string, never>>>
dataset
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages - This also works through - actorClient.lastRun().dataset(). https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages- Returns DatasetClient<Record<string | number, unknown>>
delete
- Returns Promise<void>
get
- Parameters- options: RunGetOptions = {}
 - Returns Promise<undefined | ActorRun>
keyValueStore
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages - This also works through - actorClient.lastRun().keyValueStore(). https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages- Returns KeyValueStoreClient
log
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages - This also works through - actorClient.lastRun().log(). https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages- Returns LogClient
metamorph
- Parameters- targetActorId: string
- input: unknown
- options: RunMetamorphOptions = {}
 - Returns Promise<ActorRun>
reboot
requestQueue
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages - This also works through - actorClient.lastRun().requestQueue(). https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages- Returns RequestQueueClient
resurrect
- Parameters- options: RunResurrectOptions = {}
 - Returns Promise<ActorRun>
update
- Parameters- newFields: RunUpdateOptions
 - Returns Promise<ActorRun>
waitForFinish
- Returns a promise that resolves with the finished Run object when the provided actor run finishes or with the unfinished Run object when the - waitSecstimeout lapses. The promise is NOT rejected based on run status. You can inspect the- statusproperty of the Run object to find out its status.- The difference between this function and the - waitForFinishparameter of the- getmethod is the fact that this function can wait indefinitely. Its use is preferable to the- waitForFinishparameter alone, which it uses internally.- This is useful when you need to chain actor executions. Similar effect can be achieved by using webhooks, so be sure to review which technique fits your use-case better. - Parameters- options: RunWaitForFinishOptions = {}
 - Returns Promise<ActorRun>
https://docs.apify.com/api/v2#/reference/actor-runs/abort-run/abort-run