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

#1070 use pre_execute to reduce # of tasks in partition create taskgroups #1071

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

Conversation

gabrielwol
Copy link
Collaborator

@gabrielwol gabrielwol commented Sep 10, 2024

What this pull request accomplishes:

  • switch from using @task.short_circuit operators to pre_execute = reduces # of tasks for partition creates.
    • Originally intended to use @task.run_if which would have had the same impact (fewer tasks), but the partition creates are currently PostgresOperators which would have required refactoring them to @task operators.

Tested by re-running today's miovision_pull DAG ✅

Issue(s) this solves:

What, in particular, needs to reviewed:

  • test_dags action is failing on deprecated pull_wys and pull_miovision... Should we delete these DAGs once and for all?

What needs to be done by a sysadmin after this PR is merged

E.g.: these tables need to be migrated/created in the production schema.

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

Successfully merging this pull request may close these issues.

Use new Airflow 2.10.0's new @run_if task decorator in partition create statements
1 participant