You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the partial feature in dag-factory to define task parameters that depend on the output of a previous task, the output of the upstream task is not replaced with its actual value.
Expected Behavior:
The third.output value should be replaced with the actual output of the third task, allowing the five task to receive the correct input.
Actual Behavior:
The third.output placeholder remains unresolved, causing the five task to fail or operate on an incorrect value.
How to reproduce
For example, consider the following YAML configuration:
Here, the input parameter in partial is expected to be replaced with the actual output of the third task. However, third.output is not resolved and remains as-is, causing the task five to behave incorrectly.
The text was updated successfully, but these errors were encountered:
And it seems to work as expected. Please, could you modify this example to reproduce the bug you're facing, and share with us all the changes necessary to be able to reproduce it?
Thank you for your response. I realize that I may have miscommunicated my original issue and possibly gave the wrong impression. Let me clarify:
I am not using dynamic task mapping in this scenario. Instead, I am trying to pass the output of one task (e.g., task1) as an input to another task (e.g., task2) directly within the DAG Factory YAML configuration. However, it seems that placeholders like task1.output are not being resolved to the actual output of the upstream task.
Example Configuration:
Here’s a simplified configuration to illustrate my problem:
task1 generates an output (e.g., result1).
task2 should receive result1 as the value for the input parameter via the partial configuration.
Actual Behavior:
The placeholder task1.output in the partial configuration is not replaced with the actual value from task1's output.
As a result, task2 either fails or operates on an unresolved placeholder.
Additional Example:
I also tried this configuration, and as expected, it also doesn’t work:
In this case, I attempted to pass the output of the num_genrator task directly to the num_list parameter of task2. However, the placeholder num_genrator.output also remained unresolved.
DAG Factory version
0.20.0
airflow version
2.10
Python version
3.12
Deployment
Docker-Compose
What happened?
When using the partial feature in dag-factory to define task parameters that depend on the output of a previous task, the output of the upstream task is not replaced with its actual value.
Expected Behavior:
The third.output value should be replaced with the actual output of the third task, allowing the five task to receive the correct input.
Actual Behavior:
The third.output placeholder remains unresolved, causing the five task to fail or operate on an incorrect value.
How to reproduce
For example, consider the following YAML configuration:
Here, the input parameter in partial is expected to be replaced with the actual output of the third task. However,
third.output
is not resolved and remains as-is, causing the task five to behave incorrectly.The text was updated successfully, but these errors were encountered: