Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
Add logger warning for queued jobsteps that aren't found in the Jenki…
Browse files Browse the repository at this point in the history
…ns queue

Summary:
The above TODO is one we should probably follow up on, but for now it'd be nice
to be able to track how often this happens and to be able to easily check
whether this was the reason when a build fails.

Test Plan: None

Reviewers: jukka

Reviewed By: jukka

Subscribers: changesbot, wwu

Differential Revision: https://tails.corp.dropbox.com/D97455
  • Loading branch information
kylec1 committed Mar 23, 2015
1 parent de9a43e commit f02c027
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions changes/backends/jenkins/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ def _sync_step_from_queue(self, step):
step.status = Status.finished
step.result = Result.unknown
db.session.add(step)
self.logger.warning("Queued step not found in queue: {} (build: {})".format(step.id, step.job.build_id))
return

if item.get('executable'):
Expand Down

0 comments on commit f02c027

Please sign in to comment.