- Notifications
You must be signed in to change notification settings - Fork1k
Commitdfe8efc
authored
fix: use background context for inmem provisionerd (#11545)
This test case fails with an error log, showing "context canceled" when trying to send an acquired job to an in-mem provisionerd.https://github.com/coder/coder/runs/20331469006In this case, we don't want to supress this error, since it could mean that we acquired a job, locked it in the database, then failed to send it to a provisioner.(We also don't want to mark the job as failed because we don't know whether the job made it to the provisionerd or not --- in the failed test you can see that the job is actually processed just fine).The reason we got context canceled is because the API was shutting down --- we don't want provisionerdserver to abruptly stop processing job stuff as the API shuts down as this will leave jobs in a bad state. This PR fixes up the use of contexts with provisionerdserver and the associated drpc service calls.1 parentc125206 commitdfe8efc
3 files changed
+22
-10
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1371 | 1371 |
| |
1372 | 1372 |
| |
1373 | 1373 |
| |
1374 |
| - | |
| 1374 | + | |
1375 | 1375 |
| |
1376 | 1376 |
| |
1377 |
| - | |
| 1377 | + | |
1378 | 1378 |
| |
1379 | 1379 |
| |
1380 | 1380 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1174 | 1174 |
| |
1175 | 1175 |
| |
1176 | 1176 |
| |
1177 |
| - | |
| 1177 | + | |
1178 | 1178 |
| |
1179 | 1179 |
| |
1180 | 1180 |
| |
| |||
1185 | 1185 |
| |
1186 | 1186 |
| |
1187 | 1187 |
| |
1188 |
| - | |
| 1188 | + | |
1189 | 1189 |
| |
1190 | 1190 |
| |
1191 | 1191 |
| |
| |||
1201 | 1201 |
| |
1202 | 1202 |
| |
1203 | 1203 |
| |
1204 |
| - | |
| 1204 | + | |
1205 | 1205 |
| |
1206 | 1206 |
| |
1207 | 1207 |
| |
| |||
1238 | 1238 |
| |
1239 | 1239 |
| |
1240 | 1240 |
| |
1241 |
| - | |
| 1241 | + | |
1242 | 1242 |
| |
1243 | 1243 |
| |
1244 | 1244 |
| |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1245 | 1251 |
| |
1246 |
| - | |
1247 |
| - | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1248 | 1260 |
| |
1249 | 1261 |
| |
1250 | 1262 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
532 | 532 |
| |
533 | 533 |
| |
534 | 534 |
| |
535 |
| - | |
536 |
| - | |
| 535 | + | |
| 536 | + | |
537 | 537 |
| |
538 | 538 |
| |
539 | 539 |
| |
|
0 commit comments
Comments
(0)