Skip to content
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

Closed
sy296565890 opened this issue Jul 4, 2022 · 4 comments
Closed

bull task 新需求 #2090

sy296565890 opened this issue Jul 4, 2022 · 4 comments

Comments

@sy296565890
Copy link

期望:

  1. 支持更多的queue常用方法及更友好的提示
    image

    job.pause();
    job.resume();

    pause(jobIds, 暂停处理任务or暂停计时器, 是否返回任务数据)

    jobIds = pauseAll(暂停处理任务or暂停计时器, 是否返回任务数据)
    jobOkIds = resumeAll(jobIds)

  2. 更多的实用代码块
    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');
    }

@ddzyan
Copy link
Contributor

ddzyan commented Jul 5, 2022

可以本地安装下 npm i @types/bull -D

@sy296565890
Copy link
Author

可以本地安装下 npm i @types/bull -D

非常感谢哥们的解答,我在安装依赖之后,新的问题又来了,还请哥们再帮忙看一下
image
image

@ddzyan
Copy link
Contributor

ddzyan commented Jul 6, 2022

你可以上传一个项目到github上,方便看些

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants