You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor bull queues to a common module for shared configuration (#308)
# Description
This PR does the following:
- Refactor multiple disparate instantiations of
`BullModule.forRootAsync()` into a single, global `QueueModule`. This
has the following benefits:
- Single location for configuration of queues & default parameters
- Proper use of NestJS dependency injection to avoid unnecessary
separate instantiations of `BullModule`; cuts down on app memory profile
- Add a prefix to all Redis and BullMq cache entries to distinguish from
other apps using Redis
|`API_PORT`| HTTP port that the application listens on | 1025 - 65535 || 3000 |
8
+
|`CACHE_KEY_PREFIX`| Prefix to use for Redis cache keys | string || content-watcher: |
8
9
|`CAPACITY_LIMIT`| Maximum amount of provider capacity this app is allowed to use (per epoch) type: 'percentage' 'amount' value: number (may be percentage, ie '80', or absolute amount of capacity) | JSON [(example)](./env.template)| Y ||
9
10
|`DEBOUNCE_SECONDS`|Number of seconds to retain pending graph updates in the Redis cache to avoid redundant fetches from the chain|>= 0|||| > 0 || 100 |
10
11
|`FREQUENCY_URL`| Blockchain node address | http(s): or ws(s): URL | Y ||
0 commit comments