Skip to main content

TaskConfiguration


Nadle / TaskConfiguration

Interface: TaskConfiguration

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:7

Configuration for a Nadle task.

Properties

dependsOn?

optional dependsOn?: MaybeArray<string>

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:21

A task or a list of tasks that this task depends on.


description?

optional description?: string

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:16

The description of the task.


env?

optional env?: TaskEnv

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:26

Environment variables to set when running the task.


group?

optional group?: string

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:11

The group name to which this task belongs.


inputs?

optional inputs?: MaybeArray<Declaration>

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:38

Input declaration for the task. Declare any files, directories or globs that the task reads from. These are used for cache key generation.


maxCacheEntries?

optional maxCacheEntries?: number

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:52

Maximum number of cache entries to keep for this task. When exceeded, the oldest entries are evicted. Overrides the global maxCacheEntries setting.


outputs?

optional outputs?: MaybeArray<Declaration>

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:45

Output declaration for the task. Declare any files or directories that the task produces. These are used for caching, restoring, and cleanup.


retries?

optional retries?: number

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:66

Number of additional attempts after the first failure (default 0). The task runs up to 1 + retries attempts and fails only if all fail. Must be a non-negative integer.


timeout?

optional timeout?: number

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:59

Maximum time in milliseconds a single execution attempt may take. An attempt that does not settle in time fails with a timeout error (eligible for retry). Must be a positive integer.


workingDir?

optional workingDir?: string

Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:31

Changes the working directory for the task.