I was not able to successfully load the queue config.
Then I found the reason is that the internal config load code will add prefix defined in the config to the queue name, then egg-bus will not be able to locate the correct config.
Then the config won't work, there is no rateLimit for the queue.
I dig into the code a little, and print out the queue name when loading the config file, then I found it was bus:schedule, after I change the queue name in queues to bus:schedule, everything works fine. So I think it would be better to fix this, since this is not quite clear that the config needs to include the prefix.
I was not able to successfully load the queue config.
Then I found the reason is that the internal config load code will add
prefix
defined in the config to the queue name, thenegg-bus
will not be able to locate the correct config.Example:
I have a job file inside job folder
Here is the config file
Then the config won't work, there is no rateLimit for the queue.
I dig into the code a little, and print out the queue name when loading the config file, then I found it was
bus:schedule
, after I change the queue name inqueues
tobus:schedule
, everything works fine. So I think it would be better to fix this, since this is not quite clear that the config needs to include theprefix
.