File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,13 @@ async function run(): Promise<void> {
39
39
// Get all runs for a given workflow ID
40
40
const fetchWorkflowRunIds = await api . retryOrTimeout (
41
41
( ) => api . getWorkflowRunIds ( workflowId ) ,
42
- WORKFLOW_FETCH_TIMEOUT_MS > timeoutMs
43
- ? timeoutMs
44
- : WORKFLOW_FETCH_TIMEOUT_MS ,
42
+ Math . max ( WORKFLOW_FETCH_TIMEOUT_MS , timeoutMs ) ,
45
43
) ;
46
44
if ( fetchWorkflowRunIds . timeout ) {
47
- core . debug ( "Timed out while attempting to fetch Workflow Run IDs" ) ;
48
- await new Promise ( ( resolve ) =>
49
- setTimeout ( resolve , WORKFLOW_JOB_STEPS_RETRY_MS ) ,
45
+ core . debug (
46
+ `Timed out while attempting to fetch Workflow Run IDs, waited ${ Date . now ( ) - startTime } ms` ,
50
47
) ;
51
- continue ;
48
+ break ;
52
49
}
53
50
54
51
const workflowRunIds = fetchWorkflowRunIds . value ;
You can’t perform that action at this time.
0 commit comments