Skip to content

Commit

Permalink
gentle poll
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed May 19, 2022
1 parent 652fed9 commit e2dcbf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/bitbucket_cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { spawn } = require('child_process');
const FormData = require('form-data');
const ProxyAgent = require('proxy-agent');

const { fetchUploadData, exec, gpuPresent } = require('../utils');
const { fetchUploadData, exec, gpuPresent, sleep } = require('../utils');

const { BITBUCKET_COMMIT, BITBUCKET_BRANCH, BITBUCKET_PIPELINE_UUID } =
process.env;
Expand Down Expand Up @@ -175,6 +175,7 @@ class BitbucketCloud {

let registered = false;
while (!registered) {
await sleep(1);
const runner = (await this.runners()).find(
(runner) => runner.name === name
);
Expand Down

1 comment on commit e2dcbf5

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.