У меня есть приложение, которое инкапсулирует взаимодействие с TFS REST API для очереди сборки. Приложение просто отправляет требуемый json в API, и он работал в течение нескольких месяцев, пока он внезапно не начал возвращаться к конфликту.409 ответ конфликта с использованием TFS 2015 REST API для очереди сборки
System.Net.WebException: The remote server returned an error: (409) Conflict. (https://tfs2015/tfs/spf/SPF/_apis/build/builds?api-version=2.0 :{"definition":{"id":190},"parameters":"{}"})
w3.org определить код HTTP 409, как:
The request could not be completed due to a conflict with the current state of the resource. This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. The response body SHOULD include enough information for the user to recognize the source of the conflict. Ideally, the response entity would include enough information for the user or user agent to fix the problem; however, that might not be possible and is not required.
409 не будет уходить либо - простая повторная попытка не подействует. Даже в целом «вы пытались отключить его снова» подход к перезапуску серверов сборки не помог.