tick basic events for mass rebuilder

This commit is contained in:
Graham Christensen 2018-01-13 12:36:52 -05:00
parent 9fcb621b48
commit 83909fb35d
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -74,11 +74,13 @@ impl<E: stats::SysEvents> worker::SimpleWorker for MassRebuildWorker<E> {
match issue.get() {
Ok(iss) => {
if iss.state == "closed" {
self.events.tick("issue-already-closed");
info!("Skipping {} because it is closed", job.pr.number);
return self.actions().skip(&job);
}
}
Err(e) => {
self.events.tick("issue-fetch-failed");
info!("Error fetching {}!", job.pr.number);
info!("E: {:?}", e);
return self.actions().skip(&job);