1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-09-25 21:36:50 +00:00

resolves #30: job execution timeout

Add the ability to configure a timeout in seconds
after which a job run will be automatically aborted
This commit is contained in:
Oliver Giles
2018-05-12 13:25:19 +03:00
parent ce81be85c7
commit 649caee297
6 changed files with 37 additions and 2 deletions

View File

@@ -43,6 +43,9 @@ public:
// invoked with the read data
void addDescriptor(int fd, std::function<void(const char*,size_t)> cb);
// add a one-shot timer callback
kj::Promise<void> addTimeout(int seconds, std::function<void()> cb);
// add a path to be watched for changes
void addWatchPath(const char* dpath);