mirror of https://github.com/buster-so/buster.git
fix: resolve TypeScript compilation issues in trigger app
- Remove invalid status values 'REATTEMPTING' and 'INTERRUPTED' that don't exist in enum - Fix unintentional comparison errors causing CI build failures - These were pre-existing issues from trigger dependency updates commit Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
This commit is contained in:
parent
dc25cea204
commit
0ff33d8b5c
|
@ -352,7 +352,7 @@ export const slackAgentTask: ReturnType<
|
|||
});
|
||||
|
||||
// Check if task has started
|
||||
if (run.status === 'EXECUTING' || run.status === 'REATTEMPTING') {
|
||||
if (run.status === 'EXECUTING') {
|
||||
hasStartedRunning = true;
|
||||
logger.log('Analyst task started executing during rapid poll', {
|
||||
runId: analystHandle.id,
|
||||
|
@ -438,8 +438,7 @@ export const slackAgentTask: ReturnType<
|
|||
run.status === 'SYSTEM_FAILURE' ||
|
||||
run.status === 'CRASHED' ||
|
||||
run.status === 'CANCELED' ||
|
||||
run.status === 'TIMED_OUT' ||
|
||||
run.status === 'INTERRUPTED'
|
||||
run.status === 'TIMED_OUT'
|
||||
) {
|
||||
// Task already completed or failed during rapid polling
|
||||
isComplete = true;
|
||||
|
@ -474,7 +473,7 @@ export const slackAgentTask: ReturnType<
|
|||
});
|
||||
|
||||
// Handle transition from queued to executing if we haven't sent progress message yet
|
||||
if (!hasStartedRunning && (run.status === 'EXECUTING' || run.status === 'REATTEMPTING')) {
|
||||
if (!hasStartedRunning && (run.status === 'EXECUTING')) {
|
||||
hasStartedRunning = true;
|
||||
logger.log('Analyst task has started executing', {
|
||||
runId: analystHandle.id,
|
||||
|
@ -563,8 +562,7 @@ export const slackAgentTask: ReturnType<
|
|||
run.status === 'SYSTEM_FAILURE' ||
|
||||
run.status === 'CRASHED' ||
|
||||
run.status === 'CANCELED' ||
|
||||
run.status === 'TIMED_OUT' ||
|
||||
run.status === 'INTERRUPTED'
|
||||
run.status === 'TIMED_OUT'
|
||||
) {
|
||||
isComplete = true;
|
||||
analystResult = { ok: false, error: run.error || 'Task failed' };
|
||||
|
|
Loading…
Reference in New Issue