Skip to content

Commit

Permalink
Increase skill validations wait interval (#433)
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <[email protected]>
  • Loading branch information
jsetton authored Dec 9, 2021
1 parent 974544e commit 552b8f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/submitSkillForCertification.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ async function getSkillValidations(id) {
const command = `ask smapi get-skill-validations -s ${process.env.SKILL_ID} -i ${id} -g development`;
let validations;

// Retrieve skill validations up to 10 times while status is in progress
// Retrieve skill validations up to 10 times every 30 seconds while status is in progress
for (let tries = 0; (!validations || validations.status === 'IN_PROGRESS') && tries < 10; tries++) {
// Wait for 1 second
await sleep(1000);
// Wait for 30 second
await sleep(30000);
// Get validations command output
validations = getCommandOuput(command, { json: true });
}
Expand Down

0 comments on commit 552b8f4

Please sign in to comment.