Replies: 2 comments 8 replies
-
提供更多代码,组件加载和配置的情况。 |
Beta Was this translation helpful? Give feedback.
2 replies
-
不需要判断,首先 bull 任务一直就只在一个进程(线程执行),由 redis pub/sub 保证; |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
通过pm2启动多个线程,我想要bull任务只在其中一个线程中执行,类似以上写法。
结果:
只有logger被输出
任务并没有执行,且redis并没有生成repeat
Midway Versions(Midway 版本)
Beta Was this translation helpful? Give feedback.
All reactions