Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,14 @@ func (mgr *Manager) setUpWorkerProcess() error {
return fmt.Errorf("cannot start worker process for the mananger in %v state", mgr.state)
}

if mgr.ProcessWID == "" {
mgr.ProcessWID = strconv.FormatInt(rand.Int63(), 32)
}

// This will signal to Faktory that all connections from this process
// are worker connections.
if len(mgr.ProcessWID) == 0 {
faktory.RandomProcessWid = strconv.FormatInt(rand.Int63(), 32)
} else {
faktory.RandomProcessWid = mgr.ProcessWID
}
faktory.RandomProcessWid = mgr.ProcessWID

// Set labels to be displayed in the UI
faktory.Labels = mgr.Labels

Expand Down
Loading