File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1075,11 +1075,15 @@ export default {
10751075 if (error .response .data .task_status === TASK_STATUS_INT .running ) {
10761076 this .loading .llmRunning = true
10771077 } else if (error .response .data .task_status === TASK_STATUS_INT .scheduled ) {
1078- getTaskPosition (taskId).then (response => {
1079- const taskPosition = response .data ? .ocs ? .data
1080- this .loading .taskPosition = taskPosition
1081- console .debug (' Task position:' , taskPosition)
1082- })
1078+ getTaskPosition (taskId)
1079+ .then (response => {
1080+ const taskPosition = response .data ? .ocs ? .data
1081+ this .loading .taskPosition = taskPosition
1082+ console .debug (' Task position:' , taskPosition)
1083+ })
1084+ .catch (error => {
1085+ console .error (' Failed to get task position' , error)
1086+ })
10831087 }
10841088 if (! hasPush && typeof error .response .data .task_output !== ' undefined' && error .response .data .task_output !== null ) {
10851089 this .updateStreamingMessage (error .response .data .task_output || {}, sessionId)
You can’t perform that action at this time.
0 commit comments