mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
Merge pull request #11 from weaveworks/10-dont-delete-sshed-gce-nodes
Don't delete GCE nodes for running (but failed) builds
This commit is contained in:
@@ -96,7 +96,7 @@ def gc():
|
||||
headers={'Accept': 'application/json'})
|
||||
assert result.status_code == 200
|
||||
builds = json.loads(result.content)
|
||||
running = {build['build_num'] for build in builds if build['status'] == 'running'}
|
||||
running = {build['build_num'] for build in builds if not build.get('stop_time')}
|
||||
logging.info("Runnings builds: %r", running)
|
||||
|
||||
# Stop VMs for builds that aren't running
|
||||
|
||||
Reference in New Issue
Block a user