Skip to content

Commit

Permalink
Variable status check concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed May 24, 2024
1 parent 01b259b commit f705845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion status/healthMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const ALLOWED_ERRORS = 10
const ERROR_COOLDOWN = 10 * 60
const RATE_LIMIT_COOLDOWN = 3 * 24 * 60 * 60
const HEALTH_TIMEOUT = 5000
const HEALTH_CONCURRENCY = parseInt(process.env.HEALTH_CONCURRENCY || 20)

function HealthMonitor() {
const agent = createAgent();
const queue = new PQueue({ concurrency: 20 });
const queue = new PQueue({ concurrency: HEALTH_CONCURRENCY });

async function refreshApis(client, chains) {
timeStamp('Running health checks');
Expand Down

0 comments on commit f705845

Please sign in to comment.