aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject git commit: Dropping scheduler_list_job_updates from aurora_admin
Date Tue, 14 Jan 2014 02:28:56 GMT
Updated Branches:
  refs/heads/master 12ef609cd -> 343613a5c


Dropping scheduler_list_job_updates from aurora_admin

Reviewed at https://reviews.apache.org/r/16834/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/343613a5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/343613a5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/343613a5

Branch: refs/heads/master
Commit: 343613a5c1c397b998e9dc086784c31a2d4d9109
Parents: 12ef609
Author: Maxim Khutornenko <maxim@apache.org>
Authored: Mon Jan 13 18:24:02 2014 -0800
Committer: Maxim Khutornenko <mkhutornenko@twitter.com>
Committed: Mon Jan 13 18:24:02 2014 -0800

----------------------------------------------------------------------
 .../python/apache/aurora/client/api/__init__.py   |  3 ---
 .../python/apache/aurora/client/commands/admin.py | 18 ------------------
 2 files changed, 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/343613a5/src/main/python/apache/aurora/client/api/__init__.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/aurora/client/api/__init__.py b/src/main/python/apache/aurora/client/api/__init__.py
index 09a646b..0fdf1f9 100644
--- a/src/main/python/apache/aurora/client/api/__init__.py
+++ b/src/main/python/apache/aurora/client/api/__init__.py
@@ -172,9 +172,6 @@ class AuroraClientAPI(object):
   def unload_recovery(self):
     return self._scheduler.unloadRecovery()
 
-  def get_job_updates(self):
-    return self._scheduler.getJobUpdates()
-
   def snapshot(self):
     return self._scheduler.snapshot()
 

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/343613a5/src/main/python/apache/aurora/client/commands/admin.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/aurora/client/commands/admin.py b/src/main/python/apache/aurora/client/commands/admin.py
index 15e25d5..8abb983 100644
--- a/src/main/python/apache/aurora/client/commands/admin.py
+++ b/src/main/python/apache/aurora/client/commands/admin.py
@@ -379,24 +379,6 @@ def scheduler_unload_recovery(cluster):
 
 @app.command
 @requires.exactly('cluster')
-def scheduler_list_job_updates(cluster):
-  """usage: scheduler_list_job_updates cluster
-
-  Lists in-flight job updates.
-  """
-  options = app.get_options()
-  resp = AuroraClientAPI(CLUSTERS[cluster], options.verbosity).get_job_updates()
-  check_and_log_response(resp)
-  print('Role\tEnv\tJob')
-  for update in resp.jobUpdates:
-    print('%s\t%s\t%s' % (
-      update.jobKey.role if update.jobKey else update.roleDeprecated,
-      update.jobKey.environment if update.jobKey else None,
-      update.jobKey.name if update.jobKey else update.jobDeprecated))
-
-
-@app.command
-@requires.exactly('cluster')
 def scheduler_snapshot(cluster):
   """usage: scheduler_snapshot cluster
 


Mime
View raw message