guoshupei opened a new issue, #10608:
URL: https://github.com/apache/dolphinscheduler/issues/10608

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   find version: 2.0.1
   
   When TaskExecuteThread  is running, if an exception is threw, it is caught 
and the kill method is executed,  but if kill methond also throw error instead 
of an exception, the `TaskExecuteResponseCommand` can not be set properties, 
like status, endTime, these can be set default value, for example, the `status` 
can be set 0 (state of `submit success`)
   
   - log
   
![image](https://user-images.githubusercontent.com/29919212/175577732-ac95b6f2-2114-4e0b-bb99-ddb46ebabb10.png)
   
   - code
   
![image](https://user-images.githubusercontent.com/29919212/175606777-81fa9d9f-9acd-444b-9659-07a2818c2a9e.png)
   
   
   ### What you expected to happen
   
   The state of TaskInstance is correct
   
   ### How to reproduce
   
   - 1. throw `exception/error `in try block
   - 2. throw `error `in kill methond
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.3
   
   ### 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://www.apache.org/foundation/policies/conduct)
   


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