diff --git a/.github/spot-runner-action/dist/index.js b/.github/spot-runner-action/dist/index.js index fcaa00516c36..3508fd7475b1 100644 --- a/.github/spot-runner-action/dist/index.js +++ b/.github/spot-runner-action/dist/index.js @@ -699,10 +699,11 @@ function pollSpotStatus(config, ec2Client, ghClient) { } try { core.info("Found ec2 instance, looking for runners."); - if (process.env.WAIT_FOR_RUNNERS === "false" || (yield ghClient.hasRunner([config.githubJobId]))) { - // we have runners - return instances[0].InstanceId; - } + // TODO find out whatever happened here but we seem to not be able to wait for runners + //if (process.env.WAIT_FOR_RUNNERS === "false" || await ghClient.hasRunner([config.githubJobId])) { + // we have runners + return instances[0].InstanceId; + //} } catch (err) { } // wait 10 seconds diff --git a/.github/spot-runner-action/src/main.ts b/.github/spot-runner-action/src/main.ts index 5fff08765785..989dcb384e3b 100644 --- a/.github/spot-runner-action/src/main.ts +++ b/.github/spot-runner-action/src/main.ts @@ -23,10 +23,11 @@ async function pollSpotStatus( } try { core.info("Found ec2 instance, looking for runners."); - if (process.env.WAIT_FOR_RUNNERS === "false" || await ghClient.hasRunner([config.githubJobId])) { + // TODO find out whatever happened here but we seem to not be able to wait for runners + //if (process.env.WAIT_FOR_RUNNERS === "false" || await ghClient.hasRunner([config.githubJobId])) { // we have runners return instances[0].InstanceId!; - } + //} } catch (err) {} // wait 10 seconds await new Promise((r) => setTimeout(r, 10000));