Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/operation-graph > IOperationOptions

IOperationOptions interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Options for constructing a new Operation.

Signature:

export interface IOperationOptions<TMetadata extends {} = {}, TGroupMetadata extends {} = {}> 

Properties

Property

Modifiers

Type

Description

group?

OperationGroupRecord<TGroupMetadata> | undefined

(BETA) (Optional) The group that this operation belongs to. Will be used for logging and duration tracking.

metadata?

TMetadata | undefined

(BETA) (Optional) The metadata for this operation.

name

string

(BETA) The name of this operation, for logging.

runner?

IOperationRunner | undefined

(BETA) (Optional) When the scheduler is ready to process this Operation, the runner implements the actual work of running the operation.

weight?

number | undefined

(BETA) (Optional) The weight used by the scheduler to determine order of execution.