Interface: Task

A representation of the invocation of an Executor

Table of contents

Properties

Properties

cache

โ€ข Optional cache: boolean

Determines if a given task should be cacheable.


endTime

โ€ข Optional endTime: number

Unix timestamp of when a Batch Task ends


hash

โ€ข Optional hash: string

Hash of the task which is used for caching.


hashDetails

โ€ข Optional hashDetails: Object

Details about the composition of the hash

Type declaration

NameTypeDescription
commandstringCommand of the task
implicitDeps?{ [fileName: string]: string; }Hashes of implicit dependencies which are included in the hash
nodes{ [name: string]: string; }Hashes of inputs used in the hash
runtime?{ [input: string]: string; }Hash of the runtime environment which the task was executed

id

โ€ข id: string

Unique ID


outputs

โ€ข outputs: string[]

The outputs the task may produce


overrides

โ€ข overrides: any

Overrides for the configured options of the target


parallelism

โ€ข parallelism: boolean

Determines if a given task should be parallelizable.


projectRoot

โ€ข Optional projectRoot: string

Root of the project the task belongs to


startTime

โ€ข Optional startTime: number

Unix timestamp of when a Batch Task starts


target

โ€ข target: Object

Details about which project, target, and configuration to run.

Type declaration

NameTypeDescription
configuration?stringThe configuration of the target which the task invokes
projectstringThe project for which the task belongs to
targetstringThe target name which the task should invoke