eladkal commented on issue #13623:
URL: https://github.com/apache/airflow/issues/13623#issuecomment-759460846


   ShortCircuitOperator inherits from PythonOperator.
   As explained in 
[Updating.md](https://github.com/apache/airflow/blob/master/UPDATING.md#airflowoperatorspythonpythonoperator)
 in Airflow 2.0 `provide_context` argument on the PythonOperator was removed 
and there is no need to explicitly provide or not provide the context anymore.
   
   So your code should be:
   ```
   from airflow.operators.python import ShortCircuitOperator
   from airflow import DAG
   
   with DAG(dag_id="ASD") as dag:
       task = ShortCircuitOperator(
           task_id="check",
           python_callable=lambda var: not var,
           op_args=(False))
   
   ```
   
   Closing as this is not a bug.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to