Skip to content

Commit

Permalink
Merge branch 'variable-health-concurrency' into release-v0.5.17
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed May 24, 2024
2 parents 01b259b + f705845 commit f291c2b
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 f291c2b

Please sign in to comment.