sam-gen-cop commented on issue #41470:
URL: https://github.com/apache/airflow/issues/41470#issuecomment-2448808728

   Hi, I'm using AWS MWAA 2.10.1 and I still get the same warning. Just 
wondering whether the issue is fixed in 2.10.1 or only in 2.9.3
   
   Script,
   ```
   from airflow import DAG
   from airflow.utils.dates import days_ago
   from airflow.operators.bash import BashOperator
   from airflow.utils.log.logging_mixin import LoggingMixin
   
   class MyBashOperator(BashOperator, LoggingMixin):
       def execute(self, context):
           self.log.info("Executing MyBashOperator directly in the DAG 
definition")
           return super().execute(context)
   
   dag = DAG(
       "test_bash_execution",
       default_args={
           "start_date": days_ago(1),
       },
       description="A simple DAG to test MyBashOperator execution directly",
       schedule_interval=None,
   )
   
   # Instantiate the operator
   my_bash_task = MyBashOperator(
       task_id="my_bash_operator",
       bash_command="echo 'Testing direct execution'",
       dag=dag,
   )
   ```
   
   Logs,
   <img width="816" alt="image" 
src="https://github.com/user-attachments/assets/a4fc4980-6751-4a85-97a1-e64fd0a4086c";>


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