Skip to content

ministryofjustice/wmt-worker

Repository files navigation

Workload Management Tool - Worker application

Pre-requisites

  • Node v18 (managed using nvm)

On OSX (using homebrew):

  • brew install nvm
  • Follow the instructions in the brew installer output

Install Node version 18

  • nvm install 18

(you may need to downgrade your NPM to v9 to make it work with wmt-worker)

  • npm install -g npm@9

Install Husky

  • npm install -g husky

Run prepare task

  • npm run prepare

Getting Started

This is the asynchronous worker for the WMT project. It is responsible for polling the app.tasks table, picking up tasks which are marked as PENDING, processing them and recording the result.

npm start

Testing

To run the unit tests run:

npm test

To run the integration tests run:

docker compose up -d
npm run integration-test

About

ETL processor for Workload Measurement Tool

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages