clean up task locks

This commit is contained in:
Girish Ramakrishnan
2025-07-18 18:11:56 +02:00
parent 697b42c70f
commit 7e0803c4b4
3 changed files with 6 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ async function drain() {
.finally(async () => {
delete gActiveTasks[appId];
await locks.release(`${locks.TYPE_APP_TASK_PREFIX}${appId}`);
await locks.releaseByTaskId(taskId);
scheduler.resumeAppJobs(appId);
});
}