Skip to content

Commit

Permalink
feat: Add integration for autoscaling Bull job queue workers (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlogic authored May 31, 2024
1 parent 268c8fa commit 5898502
Show file tree
Hide file tree
Showing 23 changed files with 7,001 additions and 17,748 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/bull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Bull adapter tests

on:
push:
branches: [main]
pull_request: {}

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x]
bull-version: [4.x]

services:
redis:
image: redis:latest
ports:
- 6379:6379

steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
# We can't use `cache: npm` because setup-node doesn't support our monorepo setup
node-version: ${{ matrix.node-version }}

- name: Cache node modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
working-directory: packages/bull
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ These packages work together with the [Judoscale](https://judoscale.com) autosca
- [Express](https://github.com/judoscale/judoscale-node/tree/main/express)
- [Fastify](https://github.com/judoscale/judoscale-node/tree/main/fastify)
- [BullMQ](https://github.com/judoscale/judoscale-node/tree/main/bullmq)
- [Bull](https://github.com/judoscale/judoscale-node/tree/main/bull)

## What data is collected?

Expand All @@ -15,7 +16,7 @@ The following data is submitted periodically to the Judoscale API:
- Node and framework versions
- Judoscale package versions
- Dyno or service name (example: web.1)
- Queue time metrics
- Queue metrics

Judoscale aggregates and stores this information to power the autoscaling algorithm and dashboard visualizations.

Expand Down
Loading

0 comments on commit 5898502

Please sign in to comment.