Skip to content

Commit c8afb4a

Browse files
committed
v3 finalize run with no locked isn't an error
1 parent 0d1bae7 commit c8afb4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/webapp/app/v3/services/finalizeTaskRun.server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,10 @@ export class FinalizeTaskRunService extends BaseService {
305305
});
306306

307307
if (!run.lockedById) {
308-
logger.error(
308+
// This happens when a run is expired or was cancelled before an attempt, it's not a problem
309+
logger.info(
309310
"FinalizeTaskRunService: No lockedById, so can't get the BackgroundWorkerTask. Not creating an attempt.",
310-
{ runId: run.id }
311+
{ runId: run.id, status: run.status }
311312
);
312313
return;
313314
}

0 commit comments

Comments
 (0)