Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持执行结束后,通知原operator #3

Open
googs1025 opened this issue Mar 21, 2023 · 2 comments
Open

支持执行结束后,通知原operator #3

googs1025 opened this issue Mar 21, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@googs1025
Copy link
Member

googs1025 commented Mar 21, 2023

目前执行脚本或job都是operator异步下发,执行后就不管了,预计当执行完毕后,可以调用一定时任务检查job是否执行完毕,或执行脚本后,改变状态,让消息中心operator的informer可以监听到Inspect资源,并发送消息

@googs1025 googs1025 changed the title 支持执行结束后,通知原operator> 支持执行结束后,通知原operator Mar 21, 2023
@googs1025
Copy link
Member Author

偷懒方案:在message-operator中启动一个server,当job或脚本执行完后,调用server的接口。

@googs1025
Copy link
Member Author

目前已经完成基本的代码开发。

  1. job:进入调协后,开启一个定时任务去扫,如果job status 成功或失败,都通知消息中心operator。
  2. 脚本:执行脚本是阻塞的,所以等待返回,直接调用消息中心operator的接口即可。

@googs1025 googs1025 added the enhancement New feature or request label Apr 27, 2023
@googs1025 googs1025 self-assigned this Apr 27, 2023
@googs1025 googs1025 removed their assignment Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant