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

WIP: AIP-58: Add ObjectStoragePath dag loader #39647

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

bolkedebruin
Copy link
Contributor


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@kaxil
Copy link
Member

kaxil commented May 21, 2024

cc @jedcunningham

@@ -128,10 +129,9 @@ def test_find_path_from_directory_glob_ignore(self):
]
should_not_ignore = [
"test_on_kill.py",
"test_dont_ignore_this.py",
# "test_dont_ignore_this.py",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cannot figure out why this is in the 'should ignore' list. The glob pattern actually excludes this. So if someone can shed some light on this that would be appreciated.

@@ -205,7 +207,7 @@ def start(self) -> None:
with zipfile.ZipFile(self.file_path) as z:
zip_file_paths.extend(
[
os.path.join(self.file_path, info.filename)
Path(os.path.join(self.file_path, info.filename))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Path(os.path.join(self.file_path, info.filename))
Path(self.file_path, info.filename)

@@ -426,6 +428,8 @@ def manage_slas(cls, dag_folder, dag_id: str, session: Session = NEW_SESSION) ->

We are assuming that the scheduler runs often, so we only check for
tasks that should have succeeded in the past hour.

fixme: remove this from the dag processor
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn’t be a part of the docstring.

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.

None yet

3 participants