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

   ### 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
   
   If the worker's clock early than master's clock, it will cause task delay.
   For example:
   Master: 12:00
   Worker: 11:58
   Then all task will delay `≈2min`.
   Why?
   Because `usedTime` will be a negative number. So `remainTime` > 0
   
![image](https://user-images.githubusercontent.com/20518339/192544550-1bf3a400-2164-4beb-94b0-ff351f3384df.png)
   
   
   ### What you expected to happen
   
   Task no delay.
   Because there may indeed be different servers configured with different 
clock sources
   
   ### How to reproduce
   
   Just make Worker server's clock early than Master 
   
   ### Anything else
   
   There is another problem here, what to do if the server exaggerates the time 
zone :question: 
   
   ### Version
   
   dev
   
   ### 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