# StartTaskOptions<!-- -->

### Hierarchy

* Omit\<TaskStartOptions, waitForFinish | runTimeoutSecs | maxItems | timeout>
* [Token](https://docs.apify.com/sdk/js/reference/interface/Token.md)
* [Timeout](https://docs.apify.com/sdk/js/reference/interface/Timeout.md)
* [ChildRunOptions](https://docs.apify.com/sdk/js/reference/interface/ChildRunOptions.md)
  * *StartTaskOptions*

## Index[](#Index)

### Properties

* [abortWithParent](#abortWithParent)
* [build](#build)
* [maxTotalChargeUsd](#maxTotalChargeUsd)
* [memory](#memory)
* [restartOnError](#restartOnError)
* [signal](#signal)
* [timeout](#timeout)
* [timeoutSecs](#timeoutSecs)
* [token](#token)
* [waitForResources](#waitForResources)
* [webhooks](#webhooks)

## Properties<!-- -->[](#Properties)

### [](#abortWithParent)[](https://github.com/apify/apify-sdk-js/blob/56d34bf548452109719e494db05860534d997e43/src/actor.ts#L213)optionalinheritedabortWithParent

abortWithParent?

<!-- -->

: boolean = false

Inherited from ChildRunOptions.abortWithParent

Gracefully abort the child run when this run is gracefully aborted, or when it exits through `Actor.exit()`, `Actor.fail()` or `Actor.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 without `Actor.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 from `Actor.childRuns()`, keeps its finished status in the record and is not aborted. It cannot be combined with `token`, since the token is not stored.

### [](#build)externaloptionalinheritedbuild

build?

<!-- -->

: string

Inherited from Omit.build

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`).

### [](#maxTotalChargeUsd)externaloptionalinheritedmaxTotalChargeUsd

maxTotalChargeUsd?

<!-- -->

: number

Inherited from Omit.maxTotalChargeUsd

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

### [](#memory)externaloptionalinheritedmemory

memory?

<!-- -->

: number

Inherited from Omit.memory

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.

### [](#restartOnError)externaloptionalinheritedrestartOnError

restartOnError?

<!-- -->

: boolean

Inherited from Omit.restartOnError

Determines whether the run will be restarted if it fails.

### [](#signal)externaloptionalinheritedsignal

signal?

<!-- -->

: AbortSignal

Inherited from Omit.signal

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`.

### [](#timeout)[](https://github.com/apify/apify-sdk-js/blob/56d34bf548452109719e494db05860534d997e43/src/actor.ts#L198)optionalinheritedtimeout

timeout?

<!-- -->

: number | inherit

Inherited from Timeout.timeout

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.

### [](#timeoutSecs)externaloptionalinheritedtimeoutSecs

timeoutSecs?

<!-- -->

: Timeout

Inherited from Omit.timeoutSecs

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.

### [](#token)[](https://github.com/apify/apify-sdk-js/blob/56d34bf548452109719e494db05860534d997e43/src/actor.ts#L188)optionalinheritedtoken

token?

<!-- -->

: string

Inherited from Token.token

User Apify API token that is used for API calls. By default, it is taken from the `APIFY_TOKEN` environment variable.

### [](#waitForResources)externaloptionalinheritedwaitForResources

waitForResources?

<!-- -->

: number | boolean

Inherited from Omit.waitForResources

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.

### [](#webhooks)externaloptionalinheritedwebhooks

webhooks?

<!-- -->

: readonly

<!-- -->

WebhookUpdateData\[]

Inherited from Omit.webhooks

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](https://docs.apify.com/webhooks/ad-hoc-webhooks) for detailed description.
