Skip to content
Snippets Groups Projects
Commit b04cb21b authored by Jonas Schlabertz's avatar Jonas Schlabertz
Browse files

Fixes a bug where performance would stall on ingestion workers under heavy load

parent 15b805a9
No related branches found
No related tags found
No related merge requests found
Pipeline #160597 passed
......@@ -64,6 +64,9 @@ class IngestionService {
start(): void {
logger.info("Starting IngestionService");
// Only one message should be processed at a time.
this.channel.prefetch(1);
this.channel.consume(config.rabbitMQ.queue, (message) => {
if(!message) {
logger.error("Received empty message.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment