Make sure clean is worked

This commit is contained in:
2023-05-20 09:04:37 +08:00
parent e3fc38ff06
commit 81e8655d3b
3 changed files with 31 additions and 13 deletions

View File

@@ -67,6 +67,9 @@ export class TaskManager {
this.running_tasks.delete(id);
}
}
close() {
this.db.close();
}
async run() {
while (1) {
await this.check_running_tasks();