mirror of
https://github.com/dadosfera/maestro.git
synced 2026-08-31 19:58:21 +00:00
MERGE: conflicts
This commit is contained in:
committed by
marcos-silva-rodrigues
parent
4aedb91941
commit
17fe3caf2d
@@ -845,28 +845,11 @@ export class PlatformApiController {
|
||||
const normalizedPipelineId = this.normalizePipelineId(pipelineId);
|
||||
const normalizedRunId = this.normalizePipelineId(runId);
|
||||
|
||||
const result = await this.platformApiService.proxy(
|
||||
return this.platformApiService.proxy(
|
||||
'POST',
|
||||
`/pipeline/${normalizedPipelineId}/pipeline_run/${normalizedRunId}/cancel`,
|
||||
user,
|
||||
);
|
||||
|
||||
// Update Elasticsearch to reflect the canceled run status
|
||||
try {
|
||||
await this.elasticsearchService.updateLastRunStatus(
|
||||
user.customer_name,
|
||||
pipelineId,
|
||||
'CANCELED',
|
||||
);
|
||||
} catch (esError) {
|
||||
this.logger.warn('Failed to update Elasticsearch after pipeline run cancel', {
|
||||
pipelineId,
|
||||
runId,
|
||||
error: esError.message,
|
||||
});
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// ==================== JOBS - COLUMN EDITING ROUTES ====================
|
||||
|
||||
Reference in New Issue
Block a user