-
Notifications
You must be signed in to change notification settings - Fork 0
/
flowPolicy.js
84 lines (83 loc) · 2.73 KB
/
flowPolicy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//N.B. timeout should be limited to 32-bit int which is smaller than 2147483647
module.exports = {
PHASE: {
'SETUP': {
TIMEOUT: 3 * 60 * 60 * 1000 * 2,
NAME: 'SETUP',
SUB_PHASE: {
'SYNC_CUSTOM_RULE_INFO': {
MANDATORY: false,
NAME: 'SYNC_CUSTOM_RULE_INFO',
RETRY: 1,
TIMEOUT: 60 * 10 * 1000,
NEXT: 'SYNC_CUSTOM_RULE_MI'
},
'SYNC_CUSTOM_RULE_MI': {
MANDATORY: false,
NAME: 'SYNC_CUSTOM_RULE_MI',
RETRY: 1,
TIMEOUT: 60 * 10 * 1000,
NEXT: 'SCM_CODE_DIFF'
},
'SCM_CODE_DIFF': {
MANDATORY: false,
NAME: 'SCM_CODE_DIFF',
RETRY: 1,
TIMEOUT: 60 * 10 * 1000,
NEXT: 'PREBUILD'
}
}
},
'PREPROC': {
TIMEOUT: 3 * 60 * 60 * 1000 * 2,
NAME: 'PREPROC',
SUB_PHASE: {
'PREBUILD': {
NAME: 'PREBUILD',
MANDATORY: true,
RETRY: 0,
TIMEOUT: 4 * 60 * 60 * 1000,
NEXT: 'PACKAGING',
},
'PACKAGING': {
NAME: 'PACKAGING',
MANDATORY: true,
RETRY: 0,
TIMEOUT: 60 * 60 * 1000,
NEXT: 'CREATE_SCAN_TASK'
},
'CREATE_SCAN_TASK': {
NAME: 'CREATE_SCAN_TASK',
MANDATORY: true,
RETRY: 3,
TIMEOUT: 60 * 60 * 1000,
NEXT: 'UPLOAD'
},
'UPLOAD': {
NAME: 'UPLOAD',
MANDATORY: true,
RETRY: 0,
TIMEOUT: 60 * 60 * 1000,
NEXT: 'SUBMIT_SCAN_TASK',
OTHERS: {
MAX_SOURCE_FILE_SIZE: 5 * 1024 * 1024 * 1024 //in bytes 4 GB
}
},
'SUBMIT_SCAN_TASK': {
NAME: 'SUBMIT_SCAN_TASK',
MANDATORY: true,
RETRY: 3,
TIMEOUT: 60 * 60 * 1000,
NEXT: 'CLEAN_UP'
},
'CLEAN_UP': {
NAME: 'CLEAN_UP',
MANDATORY: false,
RETRY: 0,
TIMEOUT: 60 * 60 * 1000,
NEXT: null
}
}
},
}
};