Skip to content

Commit d8294ec

Browse files
committed
⚡ Update limiter strategy
1 parent 554e388 commit d8294ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = async (app) => {
1212
app.limiter = new Bottleneck({
1313
maxConcurrent: parseInt(process.env.MAX_CONCURRENT, 10) || 10,
1414
highWater: parseInt(process.env.MAX_IN_QUEUE, 10) || 1000,
15-
strategy: Bottleneck.strategy.BLOCK,
15+
strategy: Bottleneck.strategy.OVERFLOW,
1616
trackDoneStatus: false
1717
})
1818

@@ -38,7 +38,7 @@ module.exports = async (app) => {
3838
const jobId = `${context.payload.repository.full_name}${context.payload.manual ? '-manual' : ''}`
3939
if (!app.limiter.jobStatus(jobId)) {
4040
await app.limiter.schedule({
41-
expiration: 60000,
41+
expiration: 30000,
4242
id: jobId,
4343
priority: context.payload.manual ? 1 : 9
4444
}, () => processRoutineCheck(context, opts))

0 commit comments

Comments
 (0)