Commit 4157b03a authored by Tristan Cavelier's avatar Tristan Cavelier

A JIO instance can be created without job rules now

Thank to the 'clear_job_rules: true' option
parent 2246f1b4
...@@ -220,6 +220,10 @@ function enableJobChecker(jio, shared, options) { ...@@ -220,6 +220,10 @@ function enableJobChecker(jio, shared, options) {
"action": "wait" "action": "wait"
}]; }];
if (options.clear_job_rules === true) {
shared.job_rules.length = 0;
}
if (Array.isArray(options.job_rules)) { if (Array.isArray(options.job_rules)) {
for (i = 0; i < options.job_rules.length; i += 1) { for (i = 0; i < options.job_rules.length; i += 1) {
addJobRule(deepClone(options.job_rules[i])); addJobRule(deepClone(options.job_rules[i]));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment