aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-03-11 16:01:29 +0100
committerGitHub Enterprise <[email protected]>2026-03-11 16:01:29 +0100
commit57816d04b61f6bdc1403583201246abd5883c457 (patch)
tree6148371fcc7d98702f0b121a3f40efe4e6bc08d4 /src/zencore/include
parentblock scavenge of other downloads that uses an older state file (#822) (diff)
downloadzen-57816d04b61f6bdc1403583201246abd5883c457.tar.xz
zen-57816d04b61f6bdc1403583201246abd5883c457.zip
improved oplog import progress reporting (#825)
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/jobqueue.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/zencore/include/zencore/jobqueue.h b/src/zencore/include/zencore/jobqueue.h
index d348bd021..6631e5766 100644
--- a/src/zencore/include/zencore/jobqueue.h
+++ b/src/zencore/include/zencore/jobqueue.h
@@ -25,7 +25,11 @@ public:
virtual bool IsCancelled() const = 0;
virtual void ReportMessage(std::string_view Message) = 0;
// virtual void ReportProgress(std::string_view CurrentOp, uint32_t CurrentOpPercentComplete) = 0;
- virtual void ReportProgress(std::string_view CurrentOp, std::string_view Details, ptrdiff_t TotalCount, ptrdiff_t RemainingCount) = 0;
+ virtual void ReportProgress(std::string_view CurrentOp,
+ std::string_view Details,
+ ptrdiff_t TotalCount,
+ ptrdiff_t RemainingCount,
+ uint64_t ElapsedTimeMs) = 0;
};
class JobError : public std::runtime_error
@@ -62,6 +66,7 @@ public:
std::string CurrentOpDetails;
ptrdiff_t TotalCount;
ptrdiff_t RemainingCount;
+ uint64_t ProgressElapsedTimeMs;
std::vector<std::string> Messages;
std::string AbortReason;
};