Actions: Handle Action failure in the /job/action endpoint and UI #19387
Labels
hcc/bff
Internal: server-side stuff in a client-side world
theme/actions
Nomad Task Actions
type/enhancement
Currently, the
nomad job action
CLI command handles unsuccessful actions with an error. Try, for example, running an action to curl a 404ing url and compare the output of the operator API and the CLI:The socket provides an exit code in its
exited
frame, but that's not enough to show the wrapping connection as an error.Provide a
stderr
message frame or otherwise return an error for the websocket connection.(Note! This may be front-end solvable: an action that fails a curl request/404s will send back an exit code of 6 like this:
{"exited":true,"result":{}}
, which we could respond to here)The text was updated successfully, but these errors were encountered: