@@ -66,6 +66,7 @@ import {
6666import { tracer } from "../tracer.server" ;
6767import { getMaxDuration } from "../utils/maxDuration" ;
6868import { MessagePayload } from "./types" ;
69+ import { emitRunStatusUpdate } from "~/services/runsDashboardInstance.server" ;
6970
7071const WithTraceContext = z . object ( {
7172 traceparent : z . string ( ) . optional ( ) ,
@@ -841,6 +842,8 @@ export class SharedQueueConsumer {
841842 } ;
842843 }
843844
845+ emitRunStatusUpdate ( lockedTaskRun . id ) ;
846+
844847 return {
845848 action : "noop" ,
846849 reason : "restored_checkpoint" ,
@@ -922,6 +925,8 @@ export class SharedQueueConsumer {
922925 } ,
923926 } ) ;
924927
928+ emitRunStatusUpdate ( lockedTaskRun . id ) ;
929+
925930 return {
926931 action : "noop" ,
927932 reason : "scheduled_attempt" ,
@@ -1430,14 +1435,16 @@ export class SharedQueueConsumer {
14301435 async #markRunAsWaitingForDeploy( runId : string ) {
14311436 logger . debug ( "Marking run as waiting for deploy" , { runId } ) ;
14321437
1433- return await prisma . taskRun . update ( {
1438+ await prisma . taskRun . update ( {
14341439 where : {
14351440 id : runId ,
14361441 } ,
14371442 data : {
14381443 status : "WAITING_FOR_DEPLOY" ,
14391444 } ,
14401445 } ) ;
1446+
1447+ emitRunStatusUpdate ( runId ) ;
14411448 }
14421449
14431450 async #resolveCompletedAttemptsForResumeMessage(
0 commit comments