Skip to content

Commit a04683b

Browse files
committed
make loading more error tolerant
1 parent c1357b2 commit a04683b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

load.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ def is_running(location):
6262
if queued.status_code == 303:
6363
# Done!
6464
return False
65+
if not queued.ok:
66+
print(f"Failed {location}: {q.text}", file=sys.stderr)
67+
return False
6568
j = queued.json()
6669
if j["cwltoolStatus"] == "RUNNING":
6770
return True
@@ -72,7 +75,7 @@ def is_running(location):
7275
raise Exception(f"Unhandled queue status: {queued.status_code} {queued.text}")
7376

7477

75-
MAX_CONCURRENT = 2 # Maximum number in queue
78+
MAX_CONCURRENT = 3 # Maximum number in queue
7679
SLEEP = 0.5 # wait SLEEP seconds if queue is full
7780

7881

0 commit comments

Comments
 (0)