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

Support the "magic loop" with Task SDK #45693

Closed
kaxil opened this issue Jan 15, 2025 · 0 comments · Fixed by #45694
Closed

Support the "magic loop" with Task SDK #45693

kaxil opened this issue Jan 15, 2025 · 0 comments · Fixed by #45694

Comments

@kaxil
Copy link
Member

kaxil commented Jan 15, 2025

Support https://airflow.apache.org/docs/apache-airflow/stable/howto/dynamic-dag-generation.html#optimizing-dag-parsing-delays-during-execution with Task SDK

log = structlog.get_logger(logger_name="task")
# TODO: set the "magic loop" context vars for parsing
ti = parse(msg)
log.debug("DAG file parsed", file=msg.dag_rel_path)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant