lewismc opened a new issue, #26508:
URL: https://github.com/apache/airflow/issues/26508

   ### Apache Airflow version
   
   Other Airflow 2 version
   
   ### What happened
   
   In this particular instance a task was killed due to an Airflow task 
timeout. The Kubernetes Pod took too long to initialize. 
   Sentry reported the message as follows..
   ```
   Executor reports task instance %s finished (%s) although the task says its 
%s. (Info: %s) Was the task killed externally?
   ```
   As you can see the string substitution is not being performed correctly. 
This is also shown in the following snippet.
   
   ![Screen Shot 2022-09-19 at 2 28 49 
PM](https://user-images.githubusercontent.com/1165719/191122914-31cd1ba6-7371-4850-b898-7dd96ff04401.png)
   
   Although the variables are displayed below the message this behaviour is not 
consistent with other errors displayed via Sentry. The snippet below provides a 
correctly working example.
   
   ![Screen Shot 2022-09-19 at 2 30 40 
PM](https://user-images.githubusercontent.com/1165719/191123188-2902984e-05e0-4c1a-90a9-9e7ce738da84.png)
   
   Here you can see the message populated correctly.
   
   
   ### What you think should happen instead
   
   The variables should be properly accommodated within the message. 
   
   ### How to reproduce
   
   You need to increment the `scheduler.tasks.killed_externally` `Stat` in 
[scheduler_job.py](https://github.com/apache/airflow/blob/main/airflow/jobs/scheduler_job.py#L668-L674).
 This will generate the error.
   
   ### Operating System
   
   PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" 
VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian 
HOME_URL="https://www.debian.org/"; SUPPORT_URL="https://www.debian.org/support"; 
BUG_REPORT_URL="https://bugs.debian.org/";
   
   ### Versions of Apache Airflow Providers
   
   ```
   apache-airflow[ldap]
   apache-airflow[sentry]
   apache-airflow-providers-slack==4.1.0
   apache-airflow-providers-amazon==4.1.0
   apache-airflow-providers-elasticsearch==2.1.0
   apache-airflow-providers-microsoft-mssql==2.0.1
   atlassian-python-api==3.20.1
   authlib==0.15.4
   beautifulsoup4==4.9.3
   blinker>=1.1
   pytest==7.1.2
   requests-ntlm==1.1.0
   sentry-sdk>=1.7.1
   webvtt-py==0.4.6
   ```
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   Vanilla Helm Chart airflow-1.5.0 installation (Airflow 2.2.4) into OLD 
Kubernetes version
   ```
   Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.1", 
GitCommit:"e4d4e1ab7cf1bf15273ef97303551b279f0920a9", GitTreeState:"clean", 
BuildDate:"2022-09-14T19:40:59Z", GoVersion:"go1.19.1", Compiler:"gc", 
Platform:"darwin/arm64"}
   Kustomize Version: v4.5.7
   Server Version: version.Info{Major:"1", Minor:"11+", 
GitVersion:"v1.11.9-dirty", 
GitCommit:"16236ce91790d4c75b79f6ce96841db1c843e7d2", GitTreeState:"dirty", 
BuildDate:"2019-04-08T18:22:05Z", GoVersion:"go1.10.8", Compiler:"gc", 
Platform:"linux/amd64"}
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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