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

Add a bundle for example dags when enabled #45533

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jedcunningham
Copy link
Member

Once we start parsing from bundles, we will have a separate bundle to represent the example dags, instead of simply adding them to the list of files from the dags folder like we do today.

(This is split out of #45532)

Once we start parsing from bundles, we will have a separate bundle to
represent the example dags, instead of simply adding them to the list of
files from the dags folder like we do today.
@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Jan 10, 2025
@jedcunningham jedcunningham added AIP-66: DAG Bundle/Manifest and removed area:Scheduler including HA (high availability) scheduler labels Jan 10, 2025
example_dag_folder = next(iter(example_dags.__path__))
backends.append(
{
"name": "example_dags",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we prevent people from having a bundle named example_dags in the configuration?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, what should we do about this:

if include_examples:
from airflow import example_dags
example_dag_folder = next(iter(example_dags.__path__))
file_paths.extend(list_py_file_paths(example_dag_folder, safe_mode, include_examples=False))

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

Successfully merging this pull request may close these issues.

2 participants