potiuk commented on issue #20400: URL: https://github.com/apache/airflow/issues/20400#issuecomment-1000407089
You should not really use @task -decorated function as callable. The decorator really returns a PythonOperator not the original function. If you need to use a logic that should be used in both callable and a decorated task, you should make a a non-decorated function and call it from within the decorated one. -- 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]
