Replies: 7 comments 1 reply
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
This is an intentional design at the current time. Is there a concrete reason why you need to use a custom key? |
Beta Was this translation helpful? Give feedback.
-
Converted it into discussion - because this is what it is (and also while waiting gor @qcha41 answers). |
Beta Was this translation helpful? Give feedback.
-
I have several Google Workflows executions I have some resources batch-transformed with it run_workflow = WorkflowsCreateExecutionOperator\
.partial(
task_id="run_workflow",
location=LOCATION,
project_id=PROJECT_ID,
workflow_id=WORKFLOW_ID,
)\
.expand(
execution={
"argument": {
"some_params": ["a", "b"],
# ...
"dependant_on_previous": XComArg(previous_task),
"pipeline_name": PIPELINE_NAME,
}
},
)
await_workflow_complete = WorkflowExecutionSensor\
.partial(
task_id="await_workflow_complete",
location=LOCATION,
project_id=PROJECT_ID,
workflow_id=WORKFLOW_ID,
)\
.expand(
execution_id=XComArg(run_workflow, 'execution_id'),
) I need several sensors, one per each workflow triggered, The Also, would this |
Beta Was this translation helpful? Give feedback.
-
Ran into this today. I have a task that gets a list of data and sorts it into two buckets. Each bucket has its own downstream task, it would be a lot cleaner to have the downstream task map off its specific bucket that is saved under a custom xcom key instead of needing to add additional filtering before mapping out. |
Beta Was this translation helpful? Give feedback.
-
I came across this today too. I have the same question as the others. Why is there this restriction regarding custom keys? |
Beta Was this translation helpful? Give feedback.
-
From how a task instance decides what kind of downstream mapped tasks to be dynamically created, the decision to force using " That said, adding extra logic to pull full XCom output from the backbone database again may help with this use case, but that depends on when XCom output of a task is "determined/stablized", and whether it's reasonable/feasible to do that from current task execution workflow design. |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.4.0
What happened
I am trying to use a custom XCOM key in task mapping, other than the default "return_value" key. This results in a ValueError :
What you think should happen instead
I don't understand this limitation.
How to reproduce
Operating System
Debian 11
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions