ipfs-force-community / damocles

sealing cluster for venus
https://damocles.venus-fil.io
21 stars 22 forks source link

[venus-worker] Add cli to allow pause sealing_thread before next stage task / 新增 cli 允许在下一个阶段任务之前暂停线程 #765

Open 0x5459 opened 1 year ago

0x5459 commented 1 year ago

模块 / Components

描述 / Description

As the title says.

0x5459 commented 1 year ago

暂停的线程可以重置状态,比如直接 aborted

0x5459 commented 1 year ago

当前版本支持此功能

0x5459 commented 1 year ago

经过测试,在等待执行实际任务 (可能由于并发控制导致等待) 的封装线程无法修改状态

donkabat commented 10 months ago

hi, I see that it's not closed so I have 2 ideas:

  1. Maybe it could be possible to add pause not only before next stage but with any stage which can be specified? or
  2. If worker is sealing I would like to stop it gently for maintenance instead of killing task but I can't. After cli "stop" the worker will finish tasks which are running and stop new jobs with "idle" stage.