Skip to content

Commit

Permalink
fail the program on das errors
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 31, 2018
1 parent 91c9d45 commit f46b47d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion das-utils/das_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def run_das_client(outfile, query, override, dasclient="das_client", threshold=9
nquery = 0
inCache = 0
DasSearch = 0
error = 0
for query in uqueries:
nquery += 1
sha = query_sha[query]
Expand Down Expand Up @@ -178,8 +179,9 @@ def run_das_client(outfile, query, override, dasclient="das_client", threshold=9
error += 1
break
else:
sleep(10)
sleep(2)
for t in threads: t.join()
print "Total queries: %s" % tqueries
print "Found in object store: %s" % inCache
print "DAS Search: %s" % DasSearch
exit(error)

0 comments on commit f46b47d

Please sign in to comment.