1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

feat(manager): flush disabled jobs

这个提交包含在:
bigeagle
2016-08-02 23:24:27 +08:00
父节点 437acd3f01
当前提交 ca80dff5cb
共有 6 个文件被更改,包括 164 次插入38 次删除

查看文件

@@ -27,15 +27,23 @@ type WorkerStatus struct {
LastOnline time.Time `json:"last_online"` // last seen
}
// A CmdVerb is an action to a job or worker
type CmdVerb uint8
const (
CmdStart CmdVerb = iota
CmdStop // stop syncing keep the job
CmdDisable // disable the job (stops goroutine)
CmdRestart // restart syncing
CmdPing // ensure the goroutine is alive
CmdReload // reload mirror config
// CmdStart start a job
CmdStart CmdVerb = iota
// CmdStop stop syncing, but keep the job
CmdStop
// CmdDisable disable the job (stops goroutine)
CmdDisable
// CmdRestart restart a syncing job
CmdRestart
// CmdPing ensures the goroutine is alive
CmdPing
// CmdReload tells a worker to reload mirror config
CmdReload
)
func (c CmdVerb) String() string {