Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/mkdag #4

Closed
wants to merge 7 commits into from
Closed

feature/mkdag #4

wants to merge 7 commits into from

Conversation

bwalsh
Copy link
Contributor

@bwalsh bwalsh commented Feb 1, 2025

This PR is an experiment:

  • adds command mkdag

Which:

  • Given a schema defined DAG configuration
  • Produces:
    • dags/[id]_dag.py
    • plugins/hooks/[id]_hook.py
    • config/[id]_config.json

The intent is for the user to make application logic changes to the plugins/hooks/[id]_hook.py, while keeping dags/[id]_dag.py limited to workflow topology.

$ mkdag --help
Usage: mkdag [OPTIONS]

  CLI tool to render an Airflow DAG from a YAML configuration file

Options:
  -c, --config PATH  Path to the YAML configuration file.  [required]
  -o, --output PATH  Directory for the generated DAG files [dags/,
                     plugins/hooks, config/]. Default is .
  --help             Show this message and exit.

Known issues:

@bwalsh bwalsh requested review from kellrott and teslajoy February 2, 2025 20:06
@bwalsh bwalsh closed this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant