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

Refactor dynamic task mapping implementation #313

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

tatiana
Copy link
Collaborator

@tatiana tatiana commented Dec 5, 2024

Currently DAG Factory dynamic task mapping implementation relies in internal Airflow implementation details (that it uses XComArg). If Airflow changes the implementation, DAG factory will stop working.

With this PR, we're refactoring to use the task.output parameter that is closer to the Airflow public API.

This was a suggestion by @ashb while we were discussing the overall DAG Factory dynamic task implementation.

Currently DAG Factory dynamic task mapping implementation relies in internal Airflow implementation details (that it uses XComArg). If Airflow changes the implementation, DAG factory will stop working.

With this PR, we're refactoring to use the task.output parameter, that is closer to the Airflow public API.
@tatiana tatiana requested a review from a team as a code owner December 5, 2024 12:48
@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.43%. Comparing base (2e9fd4e) to head (5b247f5).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #313      +/-   ##
==========================================
- Coverage   92.45%   92.43%   -0.02%     
==========================================
  Files          10       10              
  Lines         702      701       -1     
==========================================
- Hits          649      648       -1     
  Misses         53       53              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tatiana tatiana merged commit 80b885e into main Dec 6, 2024
67 checks passed
@tatiana tatiana deleted the refactor-dynamic-task-mapping branch December 6, 2024 11:56
@tatiana tatiana mentioned this pull request Dec 6, 2024
tatiana added a commit that referenced this pull request Dec 6, 2024
### Added

- Add support to TaskFlow and improve dynamic task mapping support by
@tatiana in #314
- Render YML DAG config as DAG Docs by @pankajastro #305
- Support building DAGs out of topologically unsorted YAML files by
@tatiana in #307
- Add support for nested task groups by @glazunov996 and @pankajastro in
#292
- Add support for templating `on_failure_callback` by @jroach-astronomer
#252

### Fixed

- Fix compatibility with
apache-airflow-providers-cncf-kubernetes>=10.0.0 by @tatiana in #311
- Refactor telemetry to collect events during DAG run and not during DAG
parsing by @pankajastro #300

### Docs

- Fix reference for HttpSensor in README.md by @pankajastro in #277
- Add example DAG for task group by @pankajastro in #293
- Add CODEOWNERS by @pankajkoti in #270
- Update CODEOWNERS to track all files by @pankajkoti in #276
- Modified Status badge in README by @jaejun #298

### Others

- Refactor dynamic task mapping implementation by @tatiana in #313
- Remove pytest durations from tests by @tatiana in #309
- Remove DAG retries check since many DAGs have different retry values
by @tatiana in #310
- Lint fixes after running `pre-commit run --all-files` by @tatiana in
#312
- Remove redundant exception code by @pankajastro #294
- Add GitHub issue template for bug reports and feature requests by
@pankajkoti in #269

Closes: #223
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.

3 participants