File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
WEBHOOK_SECRET = development
4
4
PRIVATE_KEY =
5
5
PULL_INTERVAL = 3600
6
+ JOB_TIMEOUT = 60
6
7
MAX_CONCURRENT = 10
7
8
MAX_IN_QUEUE = 1000
8
9
CONFIG_FILENAME = pull.yml
Original file line number Diff line number Diff line change 33
33
LOG_LEVEL=info \
34
34
WEBHOOK_PATH=/webhook \
35
35
PULL_INTERVAL=3600 \
36
+ JOB_TIMEOUT=60 \
36
37
MAX_CONCURRENT=10 \
37
38
MAX_IN_QUEUE=1000 \
38
39
CONFIG_FILENAME=pull.yml \
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ module.exports = async (app) => {
38
38
const jobId = `${ context . payload . repository . full_name } ${ context . payload . manual ? '-manual' : '' } `
39
39
if ( ! app . limiter . jobStatus ( jobId ) ) {
40
40
await app . limiter . schedule ( {
41
- expiration : 30000 ,
41
+ expiration : ( parseInt ( process . env . JOB_TIMEOUT , 10 ) || 60 ) * 1000 ,
42
42
id : jobId ,
43
43
priority : context . payload . manual ? 1 : 9
44
44
} , ( ) => processRoutineCheck ( context , opts ) )
You can’t perform that action at this time.
0 commit comments