Browse Source

always enable tasks, but allow for admins to disable the integrated loop in the main server process

master
ansuz 1 year ago
parent
commit
255f208a4a
1 changed files with 1 additions and 1 deletions
  1. 2
      server.js

2
server.js

@ -261,13 +261,13 @@ var nt = nThen(function (w) {
config.store = _store;
}));
}).nThen(function (w) {
if (!config.enableTaskScheduling) { return; }
var Tasks = require("./storage/tasks");
Tasks.create(config, w(function (e, tasks) {
if (e) {
throw e;
}
config.tasks = tasks;
if (config.disableIntegratedTasks) { return; }
setInterval(function () {
tasks.runAll(function (err) {
if (err) {

Loading…
Cancel
Save