potiuk commented on issue #31099: URL: https://github.com/apache/airflow/issues/31099#issuecomment-1537151154
>> This is expected. Marking a task as failed in the UI just change the status of the task in the DB. It does not invoke on_kill function. > I was wondering if that was the case. When does it get invoked? I think @eladkal you mistook it with something else (some callbacks or maybe race conditions ?). When task is running and you clear it from the UI, it will be marked as kiled in the DB and when the task runs a heartbeat, as far as I know it checks if the state is set to "FAILED" and generally it will run the "on_kill" method when exiting. So I think indeed it is 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
