Skip to content

Commit 6c3a7ec

Browse files
intproBoris Dorofeev
andauthored
feat: Queue.jobs add sorting order
* feat: add queue delete mutation * fix: clean console.log * refactor: return promis from deleteQueue * fix: remove import * refactor: pipeline for keys del * feat: add remove bulk mutation * fix: add unknown state job * fix: every type * feat: order for jobs query * feat: order for jobs query * fix: no delete by prefix name Co-authored-by: Boris Dorofeev <bdorofeev@bdorofeev-laptop.corp.ps.kz>
1 parent fb2b02c commit 6c3a7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/deleteKeys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function deleteQueue(
2222

2323
const total = await new Promise<number>((resolve, reject) => {
2424
//redis-cli: scan 0 match fullName* count 300
25-
const stream = connection.scanStream({ match: fullName + '*', count: 1000 });
25+
const stream = connection.scanStream({ match: fullName + ':*', count: 1000 });
2626

2727
let total = 0;
2828

0 commit comments

Comments
 (0)