mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 07:19:02 +00:00
Add API endpoint to pause a worker
This commit is contained in:
@@ -269,6 +269,11 @@ type UpdateWorkerRequest struct {
|
||||
Alias string `json:"alias"`
|
||||
}
|
||||
|
||||
type WorkerSetPausedRequest struct {
|
||||
Worker int64 `json:"worker"`
|
||||
Paused bool `json:"paused"`
|
||||
}
|
||||
|
||||
type CreateWorkerRequest struct {
|
||||
Alias string `json:"alias"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user