You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/14 14:44:16 UTC

[GitHub] [airflow] dstandish opened a new issue #22245: next_kwargs value sometimes value NULL sometimes string `null`

dstandish opened a new issue #22245:
URL: https://github.com/apache/airflow/issues/22245


   ### 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())
   ```
   
   <img width="682" alt="image" src="https://user-images.githubusercontent.com/15932138/158195645-3fba37e7-b822-4836-a857-6e53e03d3b2b.png">
   
   cc @ashb @uranusjr 
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org