Closed Bug 1437938 Opened 6 years ago Closed 6 years ago

Remove unused /jobs/update_state/ API

Categories

(Tree Management :: Treeherder: API, enhancement, P1)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

New Relic says `JobsViewSet.update_state` hasn't been accessed once in the last 7 days:
https://rpm.newrelic.com/accounts/677903/applications/14179757/transactions/table?type=app

The remaining REST API job submitters are instead using the `JobsViewSet.create` method to transition a job from one state to the next. Which makes sense, since more properties than just the state need changing (eg start_time, end_time), which means the `update_state` method is never sufficient on its own.
Comment on attachment 8950639 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3221

Papertrail confirms the New Relic finding of no requests made:
https://papertrailapp.com/systems/treeherder-prod/events?q=update_state
Attachment #8950639 - Flags: review?(cdawson)
Attachment #8950639 - Flags: review?(cdawson) → review+
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/2eac7bcea42868626fe0bb653b2b0a4003af6e8f
Bug 1437938 - Remove unused /jobs/update_state/ API (#3221)

The remaining REST API job submitters are using `JobsViewSet.create`
to transition jobs from one state to the next instead.
Status: ASSIGNED → RESOLVED
Closed: 6 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: