Skip to content

Commit

Permalink
Decrement worker metric when its execution returns with an error. (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermocc authored Jul 20, 2022
1 parent 9b0851b commit 9278846
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/core/services/workers_manager/workers_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func (w *WorkersManager) startWorker(ctx context.Context, name string, wkr worke
go func() {
err := wkr.Start(ctx)
if err != nil {
reportWorkerStop(name, w.builder.ComponentName)
w.logger.
With(zap.Error(err)).
With(zap.String("scheduler", name)).
Expand Down

0 comments on commit 9278846

Please sign in to comment.