Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit a35691d
Merge: 5956089 ff1c224
Author: Chuck McAndrew <6248903+dcmcand@users.noreply.github.com>
Date:   Tue Mar 9 16:04:41 2021 +0000

    Merge pull request #219 from adhocteam/cm-add-new-relic-to-worker

    add new relic to worker.js

commit ff1c224
Author: Chuck McAndrew <6248903+dcmcand@users.noreply.github.com>
Date:   Tue Mar 9 10:50:47 2021 -0500

    move require to start of file.

commit 4931466
Author: Chuck McAndrew <6248903+dcmcand@users.noreply.github.com>
Date:   Tue Mar 9 09:49:04 2021 -0500

    add new relic to worker.js
  • Loading branch information
dcmcand committed Mar 9, 2021
1 parent 26ff71b commit d5b2457
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/worker.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/* eslint-disable import/first */
require('newrelic');

import {} from 'dotenv/config';
import throng from 'throng';
import { logger, auditLogger } from './logger';
import { scanQueue } from './services/scanQueue';
import processFile from './workers/files';

require('newrelic');
// Number of workers to spawn
const workers = process.env.WORKER_CONCURRENCY || 2;
// Number of jobs per worker. Can be adjusted if clamav is getting bogged down
Expand Down

0 comments on commit d5b2457

Please sign in to comment.