We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59117c2 commit 9b5d9c1Copy full SHA for 9b5d9c1
logicaldoc-core/src/main/java/com/logicaldoc/core/task/TaskScheduling.java
@@ -100,8 +100,7 @@ public void setEnabled(boolean enabled) {
100
*/
101
public void load() throws IOException, ParseException {
102
ContextProperties config = Context.get().getProperties();
103
- String enbl = config.getProperty("schedule.enabled." + taskName);
104
- this.enabled = "true".equals(enbl);
+ this.enabled = config.getBoolean("schedule.enabled." + taskName, false);
105
setCronExpression(config.getProperty("schedule.cron." + taskName));
106
setMode(config.getProperty("schedule.mode." + taskName));
107
try {
0 commit comments