StartTaskOptions
Hierarchy
- Omit<TaskStartOptions, waitForFinish | runTimeoutSecs | maxItems | timeout>
- Token
- Timeout
- ChildRunOptions
- StartTaskOptions
Index
Properties
optionalinheritedabortWithParent
externaloptionalinheritedbuild
Tag or number of the Actor build to run (e.g. beta or 1.2.345).
If not provided, the run uses build tag or number from the default Actor run configuration (typically latest).
externaloptionalinheritedmaxTotalChargeUsd
Specifies the maximum cost of the Actor run. This parameter is
used only for pay-per-event Actors. It allows you to limit the amount
charged to your subscription. You can access the maximum cost in your
Actor by using the ACTOR_MAX_TOTAL_CHARGE_USD environment variable.
Added in 2.9.7
externaloptionalinheritedmemory
Memory in megabytes which will be allocated for the new Actor run. If not provided, the run uses memory of the default Actor run configuration.
externaloptionalinheritedrestartOnError
Determines whether the run will be restarted if it fails.
externaloptionalinheritedsignal
Aborts the method. Once the signal aborts, the request in flight is ended, no retry or further poll
follows, and the method rejects with the signal's reason.
optionalinheritedtimeout
Timeout for the Actor run in seconds, or 'inherit'.
Using inherit will set timeout of the newly started Actor run to the time
remaining until this Actor run times out so that the new run does not outlive this one.
externaloptionalinheritedtimeoutSecs
Timeout for the API request: a tier name ('short', 'medium', 'long'), a number of seconds, or
'noTimeout'. Defaults to the tier the method is assigned, which its documentation names.
optionalinheritedtoken
User Apify API token that is used for API calls. By default, it is taken from the APIFY_TOKEN environment variable.
externaloptionalinheritedwaitForResources
Retry the start while the account lacks the resources for the run, that is while the API rejects it with an
ApifyApiError of type actor-memory-limit-exceeded or concurrent-runs-limit-exceeded. Both clear as
other runs or builds finish. The start is retried every 10 seconds, and any other error is thrown right away.
true retries until the run starts. A number stops retrying after that many seconds and throws the last
error. Omitted or false, the first rejection is thrown.
A run that requests more memory than the whole memory limit of the account is rejected with
actor-memory-limit-exceeded as well and never starts, so true retries it forever.
A stream input (Readable or web ReadableStream) can't be sent twice, so its start is never retried and the
first rejection is thrown.
externaloptionalinheritedwebhooks
Specifies optional webhooks associated with the Actor run, which can be used to receive a notification e.g. when the Actor finished or failed, see ad hook webhooks documentation for detailed description.
Gracefully abort the child run when this run is gracefully aborted, or when it exits through
Actor.exit(),Actor.fail()orActor.main(), whatever the exit code. A hard abort, timeout or crash of this run leaves the child run running, and so does ending this run withoutActor.exit().Once this run is being aborted or is exiting, a call with this option throws instead of starting a run. A finished child run that is resurrected, e.g. with
resurrect()on its client fromActor.childRuns(), keeps its finished status in the record and is not aborted. It cannot be combined withtoken, since the token is not stored.