Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/operation-graph > IOperationRunnerContext

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

Information passed to the executing IOperationRunner

Signature:

export interface IOperationRunnerContext 

Properties

Property

Modifiers

Type

Description

abortSignal

AbortSignal

(BETA) An abort signal for the overarching execution. Runners should do their best to gracefully abort as soon as possible if the signal is aborted.

isFirstRun

boolean

(BETA) If this is the first time this operation has been executed.

requestRun?

(detail?: string) => void

(BETA) (Optional) A callback to the overarching orchestrator to request that the operation be invoked again. Used in watch mode to signal that inputs have changed.