Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "pack/goal-state/manageGoalSets"

Index

Functions

manageGoalSets

  • manageGoalSets(sdm: SoftwareDeliveryMachine, ctx: HandlerContext): Promise<void>

manageGoalSetsTrigger

  • manageGoalSetsTrigger(options?: object): TriggeredListener
  • TriggeredListener that queries pending goal sets and updates their state according to state of goals

    Parameters

    • Optional options: object
      • Optional enabled?: boolean

        Enable goal cancellation based on timeouts

      • Optional state?: canceled | failure

        Optional state the goal should be set to when it times out Defaults to SdmGoalState.canceled

      • Optional timeout?: number

        Optionally set the timeout after which goals should be cancelled. Defaults to 1 hour.

    Returns TriggeredListener

timeoutInProcessGoals

  • timeoutInProcessGoals(sdm: SoftwareDeliveryMachine, ctx: HandlerContext, options?: object): Promise<void>
  • Parameters

    • sdm: SoftwareDeliveryMachine
    • ctx: HandlerContext
    • Optional options: object
      • Optional enabled?: boolean

        Enable goal cancellation based on timeouts

      • Optional state?: canceled | failure

        Optional state the goal should be set to when it times out Defaults to SdmGoalState.canceled

      • Optional timeout?: number

        Optionally set the timeout after which goals should be cancelled. Defaults to 1 hour.

    Returns Promise<void>

Generated using TypeDoc