Workers graceful shutdown being sure that current executions are not truncated
@coderabhigupta がすでに取り組んでいます。
2024年1月17日 から。
評価
この issue はまだ評価されていません。
説明
Hi everyone,
I have Conductor workers running on Kubernetes pods.
I would like to handle the graceful shutdown in this way:
- stop worker polling (I achieved this by implementing the function
paused()of theWorkerInterface) - before executing the
sys.exit()to terminate the pod, I want to be sure that the current worker executions will be finished without being truncated after the SIGTERM (so all the processes associated to theTaskHandlerend) - finally execute
sys.exit()to terminate the pod
I noticed that in the TaskRunner class, when the worker is paused, None is returned to the function run_once, but the function run is in a while True loop and I didn't understand how can I be sure when a worker is stopped and finished performing his task,
Is it possible to achieve the behaviour described in the 2nd point?
Thank you in advance.
- 主要言語
- Python
- スター
- 104
- フォーク
- 43
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
conductor-oss/python-sdk のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
conductor-oss/python-sdk#507 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
conductor-oss/python-sdk#502 ·
-
bug dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
conductor-oss/python-sdk#486 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
conductor-oss/python-sdk#483 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
conductor-oss/python-sdk#478 ·
conductor-oss/python-sdk の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·