diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index 7eb951308e92..779417815453 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -2838,6 +2838,28 @@ export interface paths { patch?: never; trace?: never; }; + "/api/jobs/{job_id}/console_output": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Returns STDOUT and STDERR from the tool running in a specific job. + * @description Get the stdout and/or stderr from the tool running in a specific job. The position parameters are the index + * of where to start reading stdout/stderr. The length parameters control how much + * stdout/stderr is read. + */ + get: operations["get_console_output_api_jobs__job_id__console_output_get"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/jobs/{job_id}/destination_params": { parameters: { query?: never; @@ -12670,6 +12692,24 @@ export interface components { */ update_time: string; }; + /** JobConsoleOutput */ + JobConsoleOutput: { + /** + * Job State + * @description The current job's state + */ + state?: components["schemas"]["JobState"] | null; + /** + * STDERR + * @description Tool STDERR from job. + */ + stderr?: string | null; + /** + * STDOUT + * @description Tool STDOUT from job. + */ + stdout?: string | null; + }; /** JobDestinationParams */ JobDestinationParams: { /** @@ -27887,6 +27927,54 @@ export interface operations { }; }; }; + get_console_output_api_jobs__job_id__console_output_get: { + parameters: { + query: { + stdout_position: number; + stdout_length: number; + stderr_position: number; + stderr_length: number; + }; + header?: { + /** @description The user ID that will be used to effectively make this API call. Only admins and designated users can make API calls on behalf of other users. */ + "run-as"?: string | null; + }; + path: { + job_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["JobConsoleOutput"]; + }; + }; + /** @description Request Error */ + "4XX": { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["MessageExceptionModel"]; + }; + }; + /** @description Server Error */ + "5XX": { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["MessageExceptionModel"]; + }; + }; + }; + }; destination_params_job_api_jobs__job_id__destination_params_get: { parameters: { query?: never; diff --git a/client/src/components/JobInformation/CodeRow.vue b/client/src/components/JobInformation/CodeRow.vue index 74d0376a429e..c016560301cc 100644 --- a/client/src/components/JobInformation/CodeRow.vue +++ b/client/src/components/JobInformation/CodeRow.vue @@ -1,10 +1,5 @@