summaryrefslogtreecommitdiff
path: root/src/ingestor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ingestor.cpp')
-rw-r--r--src/ingestor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ingestor.cpp b/src/ingestor.cpp
index fe8d38c..5f9fa60 100644
--- a/src/ingestor.cpp
+++ b/src/ingestor.cpp
@@ -426,7 +426,9 @@ namespace WebStat {
}
}
else if (expired(job.lastRun, freq, now)) {
- job.currentRun.emplace(std::async(job.impl, this));
+ if (!job.cond || std::invoke(job.cond, this)) {
+ job.currentRun.emplace(std::async(job.impl, this));
+ }
}
};
runJobAsNeeded(ingestParkedLines, settings.freqIngestParkedLines);