@@ -107,15 +107,6 @@ public async Task<AgentJobRequestMessage> GetJobMessageAsync(
107
107
}
108
108
}
109
109
110
- // Temporary back compat
111
- switch ( result . StatusCode )
112
- {
113
- case HttpStatusCode . NotFound :
114
- throw new TaskOrchestrationJobNotFoundException ( $ "Job message not found: { messageId } ") ;
115
- case HttpStatusCode . Conflict :
116
- throw new TaskOrchestrationJobAlreadyAcquiredException ( $ "Job message already acquired: { messageId } ") ;
117
- }
118
-
119
110
if ( ! string . IsNullOrEmpty ( result . ErrorBody ) )
120
111
{
121
112
throw new Exception ( $ "Failed to get job message: { result . Error } . { Truncate ( result . ErrorBody ) } ") ;
@@ -171,13 +162,6 @@ public async Task CompleteJobAsync(
171
162
}
172
163
}
173
164
174
- // Temporary back compat
175
- switch ( result . StatusCode )
176
- {
177
- case HttpStatusCode . NotFound :
178
- throw new TaskOrchestrationJobNotFoundException ( $ "Job not found: { jobId } ") ;
179
- }
180
-
181
165
if ( ! string . IsNullOrEmpty ( result . ErrorBody ) )
182
166
{
183
167
throw new Exception ( $ "Failed to complete job: { result . Error } . { Truncate ( result . ErrorBody ) } ") ;
@@ -225,13 +209,6 @@ public async Task<RenewJobResponse> RenewJobAsync(
225
209
}
226
210
}
227
211
228
- // Temporary back compat
229
- switch ( result . StatusCode )
230
- {
231
- case HttpStatusCode . NotFound :
232
- throw new TaskOrchestrationJobNotFoundException ( $ "Job not found: { jobId } ") ;
233
- }
234
-
235
212
if ( ! string . IsNullOrEmpty ( result . ErrorBody ) )
236
213
{
237
214
throw new Exception ( $ "Failed to renew job: { result . Error } . { Truncate ( result . ErrorBody ) } ") ;
0 commit comments