Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Add a top-level exception handler to the gizzard scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
John Corwin committed Mar 22, 2012
1 parent dd690db commit b2bf11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -191,7 +191,7 @@ extends Process with JobConsumer {
} catch {
case e =>
log.error(e, "Uncaught exception in gizzard worker thread")
Stats.incr("uncaught-exceptions")
Stats.incr("job-scheduler-uncaught-exceptions")
}
}
}
Expand Up @@ -190,7 +190,7 @@ class JobSchedulerSpec extends ConfiguredSpecification with JMocker with ClassMo
}

jobScheduler.process()
Stats.getCounter("uncaught-exceptions")() mustEqual 1
Stats.getCounter("job-scheduler-uncaught-exceptions")() mustEqual 1
}

"too many errors" in {
Expand Down

0 comments on commit b2bf11b

Please sign in to comment.