Jobs reader: error lines shown under a job's status
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
a36ea68b45
commit
665bb612f2
1 changed files with 3 additions and 1 deletions
|
|
@ -82,6 +82,7 @@ if (a === 'status') {
|
|||
for (const r of rows) {
|
||||
const s = summaryOf(r.lines);
|
||||
console.log(`${r.machine.padEnd(28)} ${r.run_id.padEnd(44)} ${when(r.received_at)} ${s ? `${s.status} exit ${s.exit} after ${s.duration_s} s: ${s.summary}` : '(no SUMMARY line)'}`);
|
||||
if (s && s.errors && s.errors.length) for (const e of s.errors) console.log(`${''.padEnd(28)} ERROR ${e.slice(0, 160)}`);
|
||||
}
|
||||
process.exit(0);
|
||||
}
|
||||
|
|
@ -96,7 +97,8 @@ async function show(id, all) {
|
|||
console.log(`===== id ${r.id} | ${r.run_id} | ${r.label} | ${r.machine} | ${when(r.received_at)} | ${r.bytes} bytes =====`);
|
||||
const s = summaryOf(r.lines);
|
||||
if (s) {
|
||||
console.log(`SUMMARY: ${s.status} exit ${s.exit}, started ${s.started_at}${s.finished_at ? ', finished ' + s.finished_at : ''}, ${s.duration_s} s: ${s.summary}`);
|
||||
console.log(`SUMMARY: ${s.status} exit ${s.exit}, started ${s.started_at}${s.finished_at ? ', finished ' + s.finished_at : ''}, ${s.duration_s} s: ${s.summary}`)
|
||||
if (s.errors && s.errors.length) for (const e of s.errors) console.log(`ERROR: ${e.slice(0, 200)}`);;
|
||||
if (s.results && s.results.length) for (const l of s.results) console.log(` ${l}`);
|
||||
final.push(['done', 'failed', 'timeout', 'aborted'].includes(s.status));
|
||||
if (!all) { const rest = r.lines.split('\n').slice(1); const tail = rest.slice(-30); console.log(tail.join('\n')); if (rest.length > 30) console.log(` (... ${rest.length - 30} more lines; --all prints every upload)`); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue