17 #ifndef __HEALTH_CHECKER_HPP__ 18 #define __HEALTH_CHECKER_HPP__ 69 const HealthCheck& healthCheck,
70 const std::string& launcherDir,
71 const lambda::function<
void(
const TaskHealthStatus&)>& callback,
83 const HealthCheck& _healthCheck,
84 const std::string& launcherDir,
85 const lambda::function<
void(
const TaskHealthStatus&)>& _callback,
86 const TaskID& _taskId,
93 const HealthCheck healthCheck;
94 const lambda::function<void(const TaskHealthStatus&)> callback;
97 const std::string name;
101 uint32_t consecutiveFailures;
111 #endif // __HEALTH_CHECKER_HPP__
Definition: duration.hpp:32
Definition: attributes.hpp:24
Definition: executor.hpp:48
static Try< process::Owned< HealthChecker > > create(const HealthCheck &healthCheck, const std::string &launcherDir, const lambda::function< void(const TaskHealthStatus &)> &callback, const TaskID &taskId, Variant< runtime::Plain, runtime::Docker, runtime::Nested > runtime)
Attempts to create a HealthChecker object.
Definition: health_checker.hpp:45