Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed leftover debugging code

  • Loading branch information...
commit f87609be616881665fa06fefeda247643a164cb8 1 parent 6515423
Liraz Siri lirazsiri authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 cloudtask/_hub.py
8 cloudtask/_hub.py
View
@@ -23,8 +23,7 @@ class Error(Exception):
class Stopped(Error):
pass
-# def __init__(self, apikey, wait_first=30, wait_status=10, wait_retry=5, retries=2):
- def __init__(self, apikey, wait_first=1, wait_status=0, wait_retry=5, retries=2):
+ def __init__(self, apikey, wait_first=30, wait_status=10, wait_retry=5, retries=2):
self.apikey = apikey
self.wait_first = wait_first
@@ -78,8 +77,7 @@ def get_pending_servers():
stopped = callback() is False
if stopped:
- servers = [ server for server in get_pending_servers()
- if server.status in ('pending', 'running') ]
+ servers = [ server for server in get_pending_servers() ]
if not servers:
raise self.Stopped
@@ -94,8 +92,6 @@ def get_pending_servers():
if len(pending_ids) < howmany:
server = retry(hub.servers.launch, name, **kwargs)
- if len(pending_ids) == howmany - 1:
- server.set_boot_status('tklbam-restore')
pending_ids.add(server.instanceid)
if time.time() - time_started < self.wait_first:
Please sign in to comment.
Something went wrong with that request. Please try again.