josh-fell commented on issue #29102:
URL: https://github.com/apache/airflow/issues/29102#issuecomment-1400706033
FWIW I cannot reproduce this with Breeze `breeze start-airflow
--use-airflow-version 2.5.1 --python 3.8`.
A little bit of a toy example since we don't know what's going on with the
`get_file_list()` and `transform_data()` functions:
```python
from pendulum import datetime
from airflow import DAG
from airflow.operators.python import PythonOperator
def get_file_list():
return ["file1", "file2", "file3"]
def prep_args(file_name):
return {"file_name": file_name}
def transfer_data(file_name):
print(file_name)
with DAG(
"imparted_orders_lascana",
start_date=datetime(2023, 1, 1),
schedule=None
) as dag:
t0 = PythonOperator(
task_id="get_file_list",
python_callable=get_file_list,
)
t1 = PythonOperator.partial(
task_id="transfer_data",
python_callable=transfer_data,
).expand(op_kwargs=t0.output.map(prep_args))
```
<img width="1440" alt="image"
src="https://user-images.githubusercontent.com/48934154/214106200-b0e9ba04-980b-4013-8d62-60cd0cbc2a8e.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]