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 map_index label to mapped KubernetesPodOperator #21916

Merged
merged 3 commits into from
Mar 2, 2022

Conversation

ashb
Copy link
Member

@ashb ashb commented Mar 1, 2022

This seems remarkable simple. Have I missed something?

@ashb ashb requested a review from dstandish March 1, 2022 21:43
@ashb ashb requested a review from jedcunningham as a code owner March 1, 2022 21:43
@boring-cyborg boring-cyborg bot added provider:cncf-kubernetes Kubernetes provider related issues area:providers labels Mar 1, 2022
@ashb ashb added this to In progress in AIP-42: Dynamic Task Mapping Mar 1, 2022
@github-actions
Copy link

github-actions bot commented Mar 1, 2022

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Mar 1, 2022
}
ti = context['ti']

labels = {'dag_id': ti.dag_id, 'task_id': ti.task_id, 'execution_date': context['ts']}
Copy link
Contributor

@dstandish dstandish Mar 2, 2022

Choose a reason for hiding this comment

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

probably we should replace execution_date with run_id here, since that is now the "real" PK component right?. the signifigance of these labels, AFAIK, is just for "reattaching" to a pod after interruption, so it's just meant to be attrs that uniquely identify the TI. though it needn't necessarily be done in this PR of course.

Copy link
Member Author

@ashb ashb Mar 2, 2022

Choose a reason for hiding this comment

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

I had that at first here but it makes the change about task mapping hard to see, so I've got it in a separate commit/pr

(If you haven't noticed I'm a big fan of Pr=one thing, especially as changelog comes from commit messages.)

Copy link
Contributor

Choose a reason for hiding this comment

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

yup, makes sense

Copy link
Member Author

Choose a reason for hiding this comment

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

@ashb ashb merged commit 6c37e47 into apache:main Mar 2, 2022
AIP-42: Dynamic Task Mapping automation moved this from In progress to Done Mar 2, 2022
@ashb ashb deleted the kube-pod-op-maped branch March 2, 2022 16:18
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Apr 14, 2022
@jedcunningham jedcunningham added this to the Airflow 2.3.0 milestone Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dynamic-task-mapping AIP-42 area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) okay to merge It's ok to merge this PR as it does not require more tests provider:cncf-kubernetes Kubernetes provider related issues
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants