Removing workers

BullMQ Proxy provides an endpoint to remove workers that are not needed anymore. The endpoint is simply /workers/:queue-name using "DELETE" as the http verb:

curl --location --request DELETE 'http://localhost:8080/workers/my-queue' \
--header 'Authorization: Bearer my-secret-token'

If the call succeeds, the worker will be removed from the proxy and will not process new jobs. Note that if the worker is already processing some jobs, the worker will close gracefully to avoid making any jobs stalled.

Last updated