Skip to content

Commit 78648d7

Browse files
committed
handle queued status
1 parent 230e51d commit 78648d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# appexchange-uploader
2+
23
helper script to push gen1 packages to the appexchange
34

45
# usage
@@ -7,4 +8,3 @@ helper script to push gen1 packages to the appexchange
78
SALESFORCE_PASSWORD=XXXXXXXX \
89
GIT_SHA=`git rev-parse --short HEAD` \
910
npx @cloudanswers/appexchange-uploader
10-

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ function waitUntilUploaded(id) {
8888
console.log("Status:", res.Status);
8989
if (res.Status == undefined) {
9090
throw new Error("Status not found on " + res);
91-
} else if (res.Status == "IN_PROGRESS") {
92-
console.log("Checking again...");
91+
} else if (res.Status == "IN_PROGRESS" || res.Status == "QUEUED") {
92+
console.log("Checking again... status:", res.Status);
9393
return waitUntilUploaded(id);
9494
} else {
9595
return res;

0 commit comments

Comments
 (0)