Repository navigation
Fetch several XCom values of a Taskinstance in one Execution API request #70223
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
Draft
dabla
wants to merge
43
commits into
apache:main
Choose a base branch
from
dabla:feature/add-xcoms-keys-route
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
01d5518
AIP-104: Task Iteration
dabla 4ec2b3c
Describe the behaviour in two iteration test docstrings
dabla 1e420d2
Hand an item its own operator as the context's task
dabla 264ab01
Say that item checkpoints keep results in the task state store
dabla 7c4f49c
Document that items emitting to one asset share one event
dabla c51ff17
Refuse an unmappable upstream value as an iteration input
dabla 9ed0ec6
Keep the retry policy's decision for the exception handed to the runner
dabla 0e027c3
Run a sync item's enter and exit in its worker thread, and its kill o…
dabla 6791145
Stop the iteration once the iterated task is killed
dabla f419f42
Keep the state of one iteration run in IterationState
dabla 9f96f41
Keep default_args callbacks and execute hooks with the items
dabla 2756e26
Kill in a thread of its own whenever on_kill() is called
dabla 96b14f2
Kill the operator the parent's timeout strikes off the loop thread, a…
dabla bfe5db5
Send the parent's execution timeout to the supervisor once, not per s…
dabla ec4febb
Say that listeners fire once per iterated task instance, not per item
dabla 9eadec1
Read an iteration's own XComs back under their indexed key
dabla 24551fa
Classify an item's outcome in one method
dabla c1b0068
Keep what the indexed tasks ended with in IndexedTaskOutcomes
dabla c908268
Give the iteration's helper functions to the classes that own them
dabla 63f4ee4
Refuse the backend clear on the indexed state store view and keep a k…
dabla f582e1e
Say iterate in the error a @task raises when iterate() gets no arguments
dabla c03f879
Let clone_context clone a context without inlet_events or dag_run
dabla c2c763a
Point async sub-tasks at XCom.aget_one for another iteration's value
dabla f811f22
Render an indexed task's templates against the same context keys it e…
dabla 6d684eb
Say that an iteration returning None keeps its position and reads bac…
dabla 797aa52
Join the SIGTERM kill thread before the iteration concludes
dabla 4e722a4
Add the newsfragment for Task Iteration
dabla 1e566d4
Report an indexed task's success or skip once its checkpoint is written
dabla d52ca9c
Keep the default decision for an undecided failure group instead of e…
dabla 7d834e9
Do not start an indexed task instance pulled before the kill reached …
dabla 6df446b
Write the context_for docstring in the imperative mood
dabla 6b51e64
Name only the counts a kill left behind in the terminated task's message
dabla 5f7a4db
Name the workers section the state store backend option lives in
dabla 5019f84
Declare the delegate of a decorated expand input as a field so two in…
dabla 730ef65
Refuse a literal that is no collection in iterate() as expand() does
dabla eb56027
Report an indexed task's success where a failing report leaves its ch…
dabla b4ada44
Give the copy prepared for execution an iteration state of its own
dabla bd177a3
Take no lock in on_kill, which the SIGTERM handler runs on the loop t…
dabla 35a98d4
Treat an AirflowTaskTimeout a sync indexed task raises itself as that…
dabla e3aeb0c
Drop the per-indexed-task limit that could never fire before the pare…
dabla 616fea8
Release the comms thread lock an asend cancelled while waiting for it…
dabla 8a44bf7
Say when not to iterate an operator that finds its remote work by the…
dabla dcf8439
Add a POST /xcoms/{dag_id}/{run_id}/{task_id}/keys execution API endp…
dabla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Task Iteration (AIP-104): ``.iterate()`` and ``.iterate_kwargs()`` on operators and ``@task`` run the mapped inputs inside one task instance, ``task_concurrency`` of them at a time, instead of one task instance per item as ``.expand()`` does. Each iteration's result is checkpointed in the task state store, so a retry resumes where the previous attempt stopped, and the task's return value is an ``XComIterable``, a lazy sequence downstream tasks index, iterate or ``.expand()`` over. The Task SDK docs page "Mapped tasks vs iterable tasks" says when to use which. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.