REF: remove last_run_status tracking and related Elasticsearch update logic from pipeline cancellation

This commit is contained in:
viniciusgadea
2026-03-26 10:32:09 -03:00
parent d3aeca12cd
commit 8983430889
2 changed files with 1 additions and 58 deletions
@@ -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 ====================