Skip to content

Commit

Permalink
Increase retries on waiting for databricks cluster (#1036)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graves <tgraves@nvidia.com>
  • Loading branch information
tgravescs authored Oct 28, 2020
1 parent 6637b78 commit c923bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jenkins/databricks/clusterutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def wait_for_cluster_start(workspace, clusterid, token, retries=20, printLoc=sys
print(clusterid + " state:" + current_state, file=printLoc)
if current_state in ['RUNNING']:
break
if current_state in ['INTERNAL_ERROR', 'SKIPPED', 'TERMINATED'] or p >= 20:
if current_state in ['INTERNAL_ERROR', 'SKIPPED', 'TERMINATED'] or p >= 60:
if p >= retries:
print("Waited %d times already, stopping" % p)
sys.exit(4)
Expand Down

0 comments on commit c923bde

Please sign in to comment.