Commit b0a907b
authored
feat(ingest): add cancel subcommand and handle cancelled status (#223)
POST /jobs/{id}/cancel marks an import cancelled without requiring a
rerun. The server uses a non-terminal 'cancelled' status to keep the
rerun in-flight guard active while the dltHub drain finishes.
- Add IngestCancelAck struct and cancel() client method
- Add `hotdata ingest cancel <id>` subcommand
- normalize_status: add 'cancelled' arm (was falling through to running)
- status_exit_code / poll_ingest: treat cancelled as terminal (exit 1)
so `status --wait` terminates cleanly instead of spinning forever
Co-authored-by: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com>1 parent d9381fd commit b0a907b
2 files changed
Lines changed: 71 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
288 | 299 | | |
289 | 300 | | |
290 | 301 | | |
| |||
460 | 471 | | |
461 | 472 | | |
462 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
463 | 487 | | |
464 | 488 | | |
465 | 489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
193 | 204 | | |
194 | 205 | | |
195 | 206 | | |
| |||
246 | 257 | | |
247 | 258 | | |
248 | 259 | | |
| 260 | + | |
249 | 261 | | |
250 | 262 | | |
251 | 263 | | |
| |||
261 | 273 | | |
262 | 274 | | |
263 | 275 | | |
| 276 | + | |
264 | 277 | | |
265 | 278 | | |
266 | 279 | | |
| |||
986 | 999 | | |
987 | 1000 | | |
988 | 1001 | | |
989 | | - | |
| 1002 | + | |
990 | 1003 | | |
991 | 1004 | | |
992 | 1005 | | |
| |||
1030 | 1043 | | |
1031 | 1044 | | |
1032 | 1045 | | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1033 | 1076 | | |
1034 | 1077 | | |
1035 | 1078 | | |
| |||
1280 | 1323 | | |
1281 | 1324 | | |
1282 | 1325 | | |
1283 | | - | |
| 1326 | + | |
1284 | 1327 | | |
1285 | 1328 | | |
1286 | 1329 | | |
1287 | 1330 | | |
1288 | 1331 | | |
| 1332 | + | |
1289 | 1333 | | |
1290 | | - | |
| 1334 | + | |
1291 | 1335 | | |
1292 | 1336 | | |
1293 | 1337 | | |
| |||
0 commit comments