You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by GitBox <gi...@apache.org> on 2019/11/21 13:06:23 UTC

[GitHub] [kylin] nichunen commented on a change in pull request #858: KYLIN-4178: job scheduler safe mode

nichunen commented on a change in pull request #858: KYLIN-4178: job scheduler safe mode
URL: https://github.com/apache/kylin/pull/858#discussion_r349073113
 
 

 ##########
 File path: core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java
 ##########
 @@ -836,6 +837,14 @@ public Integer getSchedulerPollIntervalSecond() {
         return Integer.parseInt(getOptional("kylin.job.scheduler.poll-interval-second", "30"));
     }
 
+    public boolean isSchedulerSafeMode() {
+        return Boolean.parseBoolean(getOptional("kylin.job.scheduler.safemode", "false"));
+    }
+
+    public List<String> getSafeModeRunableProjects() {
+        return Arrays.asList(getOptionalStringArray("kylin.job.scheduler.safemode.runable-projects", null));
 
 Review comment:
   Typo of "runable" here, typos in config items should not exist

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services