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

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar feature requirement.
   
   
   ### Description
   
   Randomly, we get "task instance host is null" error when we try to run the 
workflow.
   This happens when the host is null in the server object.
   This is generally solved by restarting the server.
   
   
   ### Use case
   
   If the host is not available, it should not be selected as a host. We should 
create a list where the host is not null before randomly selecting a host.
   The issue is traced back to the RegistryClient.getRandomServer method 
implementation. It is used by /executor/execute, 
/executor/start-workflow-instance endpoints.
   
   ### Related issues
   
   https://github.com/apache/dolphinscheduler/issues/13776
   
   ### Are you willing to submit a 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