X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=TODO;h=88bd0ade3e5ccb9141c5b005f945b49cea04b40b;hp=a4e253b24a3461f346a4a631ebc8aa3ddd7c1df2;hb=2ce29ff559f9bc36733ab2dde5b657eaa76ea8a6;hpb=7ab4d4728286830f96da8d116c61046c1e4cf83a diff --git a/TODO b/TODO index a4e253b..88bd0ad 100644 --- a/TODO +++ b/TODO @@ -1,16 +1,12 @@ Allow the output of a job to be listed. This is pretty easy since we know the tmpdir and the output file. -How to deal with stuck / long-running jobs? +For Whentools.once and Whentools.max: - pre() and post() - (instead of cleanup) + - Add a ~group parameter so we can run no more than "n" jobs in one + group. - - We should have instance/timeout settings that allows us to deal - with jobs that run too long: - - job "foo" timeout 1 hour ... # timeout the job after an hour - job "bar" single instance ... # only one instance can run - job "bar" kill previous ... # kill previous if still running + - Add a ~kill_oldest (bool) parameter so we can kill the oldest jobs + and start the new job. Implement native dynlink.