From ecbb31798c55df0df771283f0e8a22e39cc01163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haye=20B=C3=B6hm?= Date: Thu, 6 Sep 2018 14:10:39 +0200 Subject: [PATCH] Add CLI options for toggling distributed mode --- Libraries/iTasks/Engine.icl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/iTasks/Engine.icl b/Libraries/iTasks/Engine.icl index 3f89e2347..af3118863 100644 --- a/Libraries/iTasks/Engine.icl +++ b/Libraries/iTasks/Engine.icl @@ -142,6 +142,8 @@ where ("Specify the folder containing the temporary files\ndefault: " +++ defaults.tempDirPath) , Option [] ["sapldir"] (ReqArg (\p->fmap \o->{o & saplDirPath=p}) "PATH") ("Specify the folder containing the sapl files\ndefault: " +++ defaults.saplDirPath) + , Option [] ["distributed"] (NoArg (fmap \o->{o & distributed=True})) + "Enable distributed mode (populate the symbols share)" ] onStartup :: (Task a) -> StartableTask | iTask a @@ -215,7 +217,7 @@ defaultEngineOptions world , sessionTime = {tv_sec=60,tv_nsec=0} // 1 minute, (the client pings every 10 seconds by default) , persistTasks = False , autoLayout = True - , distributed = True + , distributed = False , timeout = Just 500 , webDirPath = appDir appName +++ "-www" , storeDirPath = appDir appName +++ "-data" "stores" -- GitLab