Skip to content

Add Built-in Execution Context Variables #581

Open
@yottahmd

Description

@yottahmd

Overview
Introduce built-in execution context variables for each DAG execution.

Variables

  • DAG_SCHEDULER_LOG_PATH
  • DAG_EXECUTION_LOG_PATH
  • DAG_REQUEST_ID

Example Usage

handlerOn:
  failure:
    command: "echo There was an error while doing ${DAG_REQUEST_ID} request"

Requirements

  • Extend the DAGContext struct to hold necessary values
  • Modify executors to pass required environment variables when running their commands
  • Update documents (optional)

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions