You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by jc...@apache.org on 2016/09/15 18:36:19 UTC

aurora git commit: Remove --release-threshold option from aurora job restart.

Repository: aurora
Updated Branches:
  refs/heads/master 5069f93be -> 593233857


Remove --release-threshold option from aurora job restart.

Bugs closed: AURORA-1681

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


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

Branch: refs/heads/master
Commit: 59323385722d132649fa39e6a6ee5a93cc981814
Parents: 5069f93
Author: Joshua Cohen <jc...@apache.org>
Authored: Thu Sep 15 13:30:23 2016 -0500
Committer: Joshua Cohen <jc...@apache.org>
Committed: Thu Sep 15 13:30:23 2016 -0500

----------------------------------------------------------------------
 RELEASE-NOTES.md                                 | 1 +
 src/main/python/apache/aurora/client/cli/jobs.py | 9 +--------
 2 files changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/59323385/RELEASE-NOTES.md
----------------------------------------------------------------------
diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index ad2c68a..411872b 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -52,6 +52,7 @@
 - The scheduler flag `-zk_use_curator` has been deprecated. If you have never set the flag and are
   upgrading you should take care as described in the [note](#zk_use_curator_upgrade) above.
 - The `key` argument of `getJobUpdateDetails` has been deprecated. Use the `query` argument instead.
+- The --release-threshold option on `aurora job restart` has been removed.
 
 0.15.0
 ======

http://git-wip-us.apache.org/repos/asf/aurora/blob/59323385/src/main/python/apache/aurora/client/cli/jobs.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/aurora/client/cli/jobs.py b/src/main/python/apache/aurora/client/cli/jobs.py
index 7b4c269..87fbf13 100644
--- a/src/main/python/apache/aurora/client/cli/jobs.py
+++ b/src/main/python/apache/aurora/client/cli/jobs.py
@@ -513,10 +513,7 @@ class RestartCommand(Verb):
         WATCH_OPTION,
         CommandOption("--max-per-instance-failures", type=int, default=0,
              help="Maximum number of restarts per instance during restart. Increments total "
-                  "failure count when this limit is exceeded."),
-        CommandOption("--restart-threshold", type=int, default=0,
-             help="This setting is DEPRECATED, will not have any effect if provided and will be "
-                  "removed in the next release.")]
+                  "failure count when this limit is exceeded.")]
 
   @property
   def help(self):
@@ -532,10 +529,6 @@ class RestartCommand(Verb):
           context.options.max_total_failures)
       return EXIT_INVALID_PARAMETER
 
-    if context.options.restart_threshold:
-      context.print_out("WARNING: '--restart-threshold' option is no longer supported and will be "
-                        "removed in the next release.")
-
     job = context.options.instance_spec.jobkey
     instances = (None if context.options.instance_spec.instance == ALL_INSTANCES else
         context.options.instance_spec.instance)