potiuk commented on issue #28526:
URL: https://github.com/apache/airflow/issues/28526#issuecomment-1362065465

   This is very wrong use of operator. You are not supposed to create 
BashOperator from inside a task - task is already an operator and running 
BashOperator inside is just creating an object and running execute on it.
   
   The BashOperator must be instantiated in the DAG parsing time to become a 
task - not during execution of the task method.


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

Reply via email to