Init commit of jobs output/error message peek project.

This commit is contained in:
Lei Chen 2026-05-09 16:57:54 +08:00
parent c772d7e601
commit d2b47e3985
38 changed files with 2267 additions and 21 deletions

View file

@ -201,6 +201,24 @@ static int myreq_handler(vtask_t* task)
case OPCode_clrpreason:
rc = do_clr_preason(c, ep, &request);
break;
case OPCode_fetchfile:
rc = on_fetchfile(c, ep, &request);
break;
case OPCode_reply: {
/* Reply from a worker (e.g., for fetchfile proxy) */
xce_reply_t* workreply = request.body.replymsg;
if (workreply != NULL && workreply->opcode == OPCode_fetchfile) {
xce_fetchfile_reply_t* fr =
(workreply->data_which == RequestReply_data_fetchfilereply)
? workreply->data.fetchfilereply
: NULL;
uint64_t jid = fr ? fr->jobid : 0;
fetchfile_signal(jid, workreply->status, fr);
/* Ownership of fr transfers to the pending waiter. */
workreply->data.fetchfilereply = NULL;
}
break;
}
default:
rc = -E_XCE_BAD_OPCODE;
ERROR("Unknown opcode: %d", request.opcode);