summaryrefslogtreecommitdiff
path: root/src/ingestor.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2026-05-01 11:12:39 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2026-05-01 11:12:39 +0100
commit917487a6de80bf5e81eebcdbbf48bcf9763262fa (patch)
tree55ea9a6ba7c8992968d6b24976d307ee56fb5591 /src/ingestor.hpp
parent1c929e46d8e7b14a74f80a21b5f30c9abbee410f (diff)
downloadwebstat-917487a6de80bf5e81eebcdbbf48bcf9763262fa.tar.bz2
webstat-917487a6de80bf5e81eebcdbbf48bcf9763262fa.tar.xz
webstat-917487a6de80bf5e81eebcdbbf48bcf9763262fa.zip
Explicitly wait for and finalize any running jobs on exit
Diffstat (limited to 'src/ingestor.hpp')
-rw-r--r--src/ingestor.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ingestor.hpp b/src/ingestor.hpp
index 916f200..c57c16a 100644
--- a/src/ingestor.hpp
+++ b/src/ingestor.hpp
@@ -110,6 +110,8 @@ namespace WebStat {
void handleCurlOperations();
void logStats() const;
void clearStats();
+ void finalizeJob(Job &, minutes freq, Job::LastRunTime::clock::time_point now);
+ void finishAllJobs();
void jobIngestParkedLines(const std::filesystem::path &);
size_t jobIngestParkedLines(FILE *, size_t count);