Closed Bug 1306588 Opened 8 years ago Closed 8 years ago

Make Pulse jobs ingestion gracefully handle jobs for unknown repositories

Categories

(Tree Management :: Treeherder: Data Ingestion, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: camd)

References

Details

Attachments

(1 file)

Currently job_loader.py does: for project, job_list in validated_jobs.items(): with JobsModel(project) as jobs_model: ...which I think means it will raise DatasetNotFoundError if the job is for an unknown repository, and then go on to retry 10 times. Should we add a try-except and instead log?
Flags: needinfo?(cdawson)
Flags: needinfo?(cdawson)
Attachment #8797795 - Flags: review?(emorley)
Attachment #8797795 - Flags: review?(emorley)
Assignee: nobody → cdawson
Flags: needinfo?(cdawson)
Ed: yeah, you're right. And this code changed a fair bit since the ORM changes went in. Fixed this up now.
Flags: needinfo?(cdawson)
Comment on attachment 8797795 [details] [review] [treeherder] mozilla:unknown-repo-gracefully > mozilla:master Thanks for the ping on this. :)
Attachment #8797795 - Flags: review?(emorley)
Comment on attachment 8797795 [details] [review] [treeherder] mozilla:unknown-repo-gracefully > mozilla:master r+ with review comment addressed :-)
Attachment #8797795 - Flags: review?(emorley) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: