-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Load Example Plugins with Example DAGs #39999
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
Load Example Plugins with Example DAGs #39999
Conversation
|
Some serialization tests are failing but I like it :) |
899fe3e to
c09b8d5
Compare
e10c88d to
3fda785
Compare
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @uranusjr ?
uranusjr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, one minor thought.
* Load Example Plugins with Example DAGs * Make testing timetables with unique name to fix serialization * Fix loading, move example timetable and fix pytests * Fix pytests with custom timetables * Fix pytests with custom timetables, mock loading issues in python 3.8 * Fix pytests with custom timetables, mock loading issues in python 3.8
|
Sorry for commenting on a merged PR. Just wanna make sure this is a real issue before i create an issue 😅 I'm on Airflow 2.10.1. The PR does make sure the plugin is loaded when However, both the and when executing of course if I set the only way that I can run both this example and the cli commands is:
|
That is okay. And I assume we have not tried the CLI after the change applied with example DAGs being loaded. Can you raise a new bug for this? (related to this PR?) Did you set "load examples=True" in your config or did you see this error after running with examples loaded once? Because if the CLI runs w/o examples explicitly turned-on but DAGs have been parsed to DB with examples, this might be a config mis-match. |
Yes, I've been setting |
I noticed that we have some example plugins we ship in our source code, but so far we are limited not being able to "eat our own dog-food" with the example DAGs. Plugins so far needed to be deployed by deployment manager.
This PR improves the plugin manager slightly in the way that plugins contained in example DAGs folder in source are loaded as well when example DAGs are loaded.
This enables us(in separate PRs in future... soon?) to really use timetables in the example DAGs and not only have code examples linked in documentation.
FYI @hussein-awala I remember you also had a hard time making an example working in our PR #36029