2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-08-19 15:08:55 +08:00

Add a method to list running servers to Inspector

This commit is contained in:
Ken Hibino
2020-12-30 07:10:53 -08:00
parent 196d66f221
commit c5100a9c23
5 changed files with 128 additions and 19 deletions

View File

@@ -275,13 +275,14 @@ type ServerInfo struct {
// WorkerInfo holds information about a running worker.
type WorkerInfo struct {
Host string
PID int
ID string
Type string
Queue string
Payload map[string]interface{}
Started time.Time
Host string
PID int
ServerID string
ID string
Type string
Queue string
Payload map[string]interface{}
Started time.Time
}
// SchedulerEntry holds information about a periodic task registered with a scheduler.