Skip to content

Commit

Permalink
Merge pull request #285 from travis-ci/hh/job-finish-sum-metric
Browse files Browse the repository at this point in the history
amqp-job: add metric for job finishing without state
  • Loading branch information
emdantrim authored Feb 24, 2017
2 parents 876aaf9 + e6072bc commit d60b97a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions amqp_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func (j *amqpJob) Finish(ctx gocontext.Context, state FinishState) error {
}

metrics.Mark(fmt.Sprintf("travis.worker.job.finish.%s", state))
metrics.Mark("travis.worker.job.finish")

err := j.sendStateUpdate("job:test:finish", map[string]interface{}{
"id": j.Payload().Job.ID,
Expand Down

0 comments on commit d60b97a

Please sign in to comment.