You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/02/23 06:43:40 UTC

[GitHub] [incubator-dolphinscheduler] jepsonzhang commented on issue #4838: [Bug]worker has been in the running state

jepsonzhang commented on issue #4838:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4838#issuecomment-783950009


   这个是和目前海豚的停止机制有关,当Api-server接受到外部的命令的时候,会像数据库插入一条command用于停止,master抢到锁之后,从数据库拿到这个command,会将任务流的状态改成准备停止,然后找到任务流对应的运行的任务列表,下发命令给对应的worker,由worker去关闭对应的task的进程,关闭完了再通知master,master再去修改对应的taskInstance的状态,然后master会不停的查看所有运行中的task的状态变成结束的状态,是的话,最终才会把任务流的状态改成停止状态,海豚里面用了大量的异步+状态机来处理这些状态的变迁问题。


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org