airflow icon indicating copy to clipboard operation
airflow copied to clipboard

next_kwargs value sometimes value NULL sometimes string `null`

Open dstandish opened this issue 3 years ago • 1 comments

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())
image

cc @ashb @uranusjr

Committer

  • [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.

dstandish avatar Mar 14 '22 14:03 dstandish

This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author.

github-actions[bot] avatar Dec 19 '24 09:12 github-actions[bot]