This PR adds a --config option for CLI. This config is helpful to define rate limit for different endpoints.
workerData.queue.options is now part of config. This change enables us to validate config including queue options and endpoint with a single line. const valid = check(configSchema). The schema is defined here.
This PR adds a
--config
option for CLI. This config is helpful to define rate limit for different endpoints.workerData.queue.options
is now part of config. This change enables us to validate config including queue options and endpoint with a single line.const valid = check(configSchema)
. The schema is defined here.