Skip to content

Commit

Permalink
feat(worker): Added worker pool health check probe
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox committed Jul 17, 2024
1 parent 4c9f729 commit 289c7e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,4 +333,4 @@ func main() {
}
```

This probe is successful if all the executions status of the [WorkerPool](pool.go) are not in `error`.
This probe is successful if all the executions statuses of the [WorkerPool](pool.go) are healthy.
2 changes: 1 addition & 1 deletion worker/healthcheck/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (p *WorkerProbe) SetName(name string) *WorkerProbe {
return p
}

// Check returns a successful [healthcheck.CheckerProbeResult] if the worker pool executions are all in running status.
// Check returns a successful [healthcheck.CheckerProbeResult] if the worker pool executions are all in healthy status.
func (p *WorkerProbe) Check(ctx context.Context) *healthcheck.CheckerProbeResult {
success := true
messages := []string{}
Expand Down

0 comments on commit 289c7e9

Please sign in to comment.