You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/02/07 02:30:11 UTC

git commit: Added checkpoint flag to CLI execute.

Updated Branches:
  refs/heads/master 7e7fe4a95 -> e76be3675


Added checkpoint flag to CLI execute.

Review: https://reviews.apache.org/r/17713


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

Branch: refs/heads/master
Commit: e76be367536e46f4cdf74e681af913b82073895e
Parents: 7e7fe4a
Author: Ian Downes <ia...@gmail.com>
Authored: Thu Feb 6 17:29:22 2014 -0800
Committer: Vinod Kone <vi...@twitter.com>
Committed: Thu Feb 6 17:29:22 2014 -0800

----------------------------------------------------------------------
 src/cli/execute.cpp | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e76be367/src/cli/execute.cpp
----------------------------------------------------------------------
diff --git a/src/cli/execute.cpp b/src/cli/execute.cpp
index c46e3db..2b5789e 100644
--- a/src/cli/execute.cpp
+++ b/src/cli/execute.cpp
@@ -97,6 +97,11 @@ public:
         "overwrite",
         "Overwrite the package in HDFS if it already exists",
         false);
+
+    add(&checkpoint,
+        "checkpoint",
+        "Enable checkpointing for the framework (requires slave checkpointing)",
+        false);
   }
 
   Option<string> master;
@@ -107,6 +112,7 @@ public:
   string hdfs;
   Option<string> package;
   bool overwrite;
+  bool checkpoint;
 };
 
 
@@ -329,6 +335,7 @@ int main(int argc, char** argv)
   FrameworkInfo framework;
   framework.set_user(os::user());
   framework.set_name("");
+  framework.set_checkpoint(flags.checkpoint);
 
   MesosSchedulerDriver driver(&scheduler, framework, flags.master.get());