Commit 3c88993
Merge #158350
158350: jobs: record reason in job status during for-cause pauses r=dt a=dt
When pausing for a specified reason, that reason should be shown as the secondary, informative status of the job aka its 'running_status'. This is done by setting the job's status using StatusStorage. Furthermore, a status set in pause-requested should be kept when the job moves to paused, unlike a status from running, as the status in pause-requested explains why the job moved to paused via the pause-request.
Release note (ops change): Jobs that are paused due to a specific reason, including jobs which pause themselves when encountering errors such as running out of disk space, now record that reason in their displayed status field of SHOW JOBS. Epic: none.
Co-authored-by: David Taylor <davidt@davidt.io>2 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
899 | | - | |
| 899 | + | |
900 | 900 | | |
901 | 901 | | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
902 | 908 | | |
903 | 909 | | |
904 | 910 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
403 | 407 | | |
404 | 408 | | |
405 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
406 | 415 | | |
407 | 416 | | |
408 | 417 | | |
| |||
0 commit comments