zhujy
Results
issues of
zhujy
## What happens? 1.我有一个定时任务中去请求第三方的token, schedule.type设置的为'all', 如果我有4个进程去跑这个定时任务, 就会存在4个token, 其中只有一个有效, 那这个'all'的意义何在? 2.另外'all'一般用在什么情况下? ## 示例 ``` exports.schedule = { interval: '10s', type: 'all', // only run in one worker disable: false,//配置该参数为 true 时,这个定时任务不会被启动。...
## What happens? 在单机多进程部署下, 通过this.app.uid="ABCD"; controller中, 打印`process.pid` 和 `app.uid` 为何每次都和上一次打印的一样? 不应该是按照进程随机的吗?
need-more-information