close db when exit process
This commit is contained in:
parent
9e85cfaaec
commit
cb101b6573
|
@ -54,6 +54,7 @@ handle_exit(() => {
|
||||||
db.prepare('update task set status=? where id=?').run('interrupt', v.id)
|
db.prepare('update task set status=? where id=?').run('interrupt', v.id)
|
||||||
})
|
})
|
||||||
records.length && console.log(records.length, 'task interrupted')
|
records.length && console.log(records.length, 'task interrupted')
|
||||||
|
db.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
async function gen_count_body ({ fid, type, update, service_account }) {
|
async function gen_count_body ({ fid, type, update, service_account }) {
|
||||||
|
|
Loading…
Reference in New Issue