Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement Timeout Configuration for DAG Tasks #565

@yottahmd

Description

@yottahmd

Overview
Add a timeout field to the DAG configuration to specify the maximum time allowed for a task.

Requirements
When a timeout occurs:

  • Mark the entire DAG as errored
  • Cancel all steps currently in execution

Implementation

  • Modify the DAG configuration schema to include the new timeout field
  • Update scheduler logic

Example DAG configuration

timeout: 3600  # Timeout in seconds (1 hour)
steps:
  - command: some long work

Testing

  • Add unit tests for the timeout functionality
  • Create integration tests with DAGs that trigger timeouts
  • Ensure proper error handling and logging of timeout events

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