Skip to content

Commit

Permalink
fix: Unhandled scan status "PENDING"
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hashimo authored and alexjurkiewicz committed Aug 22, 2024
1 parent a17ece3 commit e9f927f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ const main = async () => {
},
repositoryName: repository
}).promise()
status = 'IN_PROGRESS'
status = 'PENDING'
}

let firstPoll = true
while (status === 'IN_PROGRESS') {
while (status === 'PENDING' || status === 'IN_PROGRESS') {
if (!firstPoll) {
await new Promise((resolve) => {
setTimeout(resolve, 5000)
Expand Down

0 comments on commit e9f927f

Please sign in to comment.