-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
affected_version:main_branchIssues Reported for main branchIssues Reported for main brancharea:corearea:dynamic-task-mappingAIP-42AIP-42kind:bugThis is a clearly a bugThis is a clearly a bug
Description
Body
When running a dag with airflow dags test i noticed that in some of the mapped tasks, next_kwargs were null and in others they were the string value null which doesn't seem right.
Dag code:
import pendulum
from airflow import DAG
from airflow.operators.python import PythonOperator
with DAG(dag_id='hello', start_date=pendulum.now().add(days=-2)) as dag:
@dag.task
def make_list():
return list(map(lambda a: f'echo "{a!r}"', [1, 2, {'a': 'b'}]))
def consumer(*args):
print(repr(args))
op = PythonOperator.partial(
task_id='consumer',
python_callable=consumer,
).expand(op_args=make_list())
Committer
- I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Metadata
Metadata
Assignees
Labels
affected_version:main_branchIssues Reported for main branchIssues Reported for main brancharea:corearea:dynamic-task-mappingAIP-42AIP-42kind:bugThis is a clearly a bugThis is a clearly a bug
