Change-Id: I388eb43fea01f8b79f5a122afa2c68757736fb81
Reviewed-on: http://review.couchbase.org/77448
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
addLogEntry(currentTask->getTaskable().getName() +
to_string(currentTask->getDescription()),
q->getQueueType(), runtime, startReltime,
- (runtime > std::chrono::seconds(
- currentTask->maxExpectedDuration())));
+ (runtime > currentTask->maxExpectedDuration()));
if (engine) {
ObjectRegistry::onSwitchThread(engine);
*/
virtual cb::const_char_buffer getDescription() = 0;
- virtual int maxExpectedDuration(void) {
- return 3600;
+ /**
+ * The maximum expected duration of this task. Any tasks taking longer than
+ * this to run will be logged as "slow".
+ */
+ virtual std::chrono::microseconds maxExpectedDuration() {
+ return std::chrono::microseconds(3600);
}
/**