This commit is contained in:
syuilo 2019-02-06 15:24:59 +09:00
parent 71ba72e796
commit 20ee57931f
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
5 changed files with 76 additions and 2 deletions

View file

@ -87,3 +87,9 @@ export default function() {
return queue;
}
export function destroy() {
queue.destroy().then(n => {
queueLogger.succ(`All job removed (${n} jobs)`);
});
}