-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bull task 新需求 #2090
Comments
可以本地安装下 npm i @types/bull -D |
4 tasks
你可以上传一个项目到github上,方便看些 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
期望:
支持更多的queue常用方法及更友好的提示
job.pause();
job.resume();
pause(jobIds, 暂停处理任务or暂停计时器, 是否返回任务数据)
jobIds = pauseAll(暂停处理任务or暂停计时器, 是否返回任务数据)
jobOkIds = resumeAll(jobIds)
更多的实用代码块
e.g. clearBull
async clearBull (queue) {
// 核心关键问题查看github issues
// queue.empty() do not empty all jobs OptimalBits/bull#83
await queue.empty();
await queue.clean(0, 'active');
await queue.clean(0, 'completed');
await queue.clean(0, 'delayed');
await queue.clean(0, 'failed');
}
The text was updated successfully, but these errors were encountered: