diff --git a/src/gd.js b/src/gd.js index 6ab3e04..a7f16b3 100644 --- a/src/gd.js +++ b/src/gd.js @@ -54,6 +54,7 @@ handle_exit(() => { db.prepare('update task set status=? where id=?').run('interrupt', v.id) }) records.length && console.log(records.length, 'task interrupted') + db.close() }) async function gen_count_body ({ fid, type, update, service_account }) {