TaskConfiguration
Nadle / TaskConfiguration
Interface: TaskConfiguration
Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:7
Configuration for a Nadle task.
Properties
dependsOn?
optionaldependsOn?: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?
optionaldescription?:string
Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:16
The description of the task.
env?
optionalenv?:TaskEnv
Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:26
Environment variables to set when running the task.
group?
optionalgroup?:string
Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:11
The group name to which this task belongs.
inputs?
optionalinputs?: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?
optionalmaxCacheEntries?: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?
optionaloutputs?: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?
optionalretries?: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?
optionaltimeout?: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?
optionalworkingDir?:string
Defined in: packages/nadle/src/core/interfaces/task-configuration.ts:31
Changes the working directory for the task.