amoghrajesh commented on issue #57167:
URL: https://github.com/apache/airflow/issues/57167#issuecomment-3438477707

   > Alternatively, I think we could pass exc_info=True instead of the 
exception parameter. This is what was done [until 
3.0.4](https://github.com/apache/airflow/blob/367d8680af355b492f256ab86aa738f9ee292f2f/task-sdk/src/airflow/sdk/execution_time/supervisor.py#L1039).
 I am not sure if there was a specific reason for changing this.
   
   The reason for that @karenbraganz was ruff! The version of ruff we currently 
use objects it and complains
   ```bash
   Run 'ruff' for extremely fast Python 
linting.....................................Failed
   - hook id: ruff
   - exit code: 1
     LOG014 `exc_info=` outside exception handlers
         --> task-sdk/src/airflow/sdk/execution_time/supervisor.py:1140:13
          |
     1138 |             ti_id=self.id,
     1139 |             max_retries=MAX_FAILED_HEARTBEATS,
     1140 |             exc_info=True,
          |             ^^^^^^^^^^^^^
     1141 |         )
     1142 |         # If we've failed to heartbeat too many times, kill the 
process
          |
     help: Remove `exc_info=`
   ```


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