-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 bee-queue队列中process如何在多个work上执行一次 #3969
Labels
Comments
封装为一个 egg-schedule 的策略,触发的时候丢给 worker 执行,执行完后通知回来,再调度下一个。 |
要看下这个库是不是分布式的 |
多进程研发模式增强 |
难道不能吧任务放在单个work上执行,并返回结果? @atian25 你好,你的思路我想了一下,但是有个问题,定时最小间隔是1分钟,会出现队列执行延迟,有更好的方法吗? |
|
我那个指的是自定义一个 ScheduleStrategy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
app.js文件代码
问题:
默认queue.process是同时执行一个任务,npm run dev下正常,但是npm run start后会在多个work里面执行,导致队列process同时执行多个。
看了issue中又2个朋友有类型情况,请问如何在一个work上执行或者同时只有一个proccess有效?
(备注:agent通知这个不行,因为无法获取到队列进度,还是会导致并行)
The text was updated successfully, but these errors were encountered: