@@ -156,7 +156,7 @@ Job(name, workdir=None, args=(), timeout=0, ontimeout=False, task=None
156156
157157### Task
158158``` python
159- Task(name, timeout = 0 , onstart = None , ondone = None , params = None , stdout = sys.stdout, stderr = sys.stderr):
159+ Task(name, onstart = None , ondone = None , onfinish = None , params = None , task = None , latency = 2 , stdout = sys.stdout, stderr = sys.stderr):
160160 """ Initialize task, which is a group of jobs to be executed
161161
162162 Task is a managing container for Jobs
@@ -173,8 +173,8 @@ Task(name, timeout=0, onstart=None, ondone=None, params=None, stdout=sys.stdout,
173173 CONTEXT OF THE CALLER (main process) with the single argument, the task. Default: None
174174 ATTENTION: must be lightweight
175175 params - additional parameters to be used in callbacks
176- latency: float - lock timeout in seconds: None means infinite, <= 0 means non-bocking, > 0 is the actual timeout
177176 task: Task - optional supertask
177+ latency: float - lock timeout in seconds: None means infinite, <= 0 means non-bocking, > 0 is the actual timeout
178178 stdout - None or file name or PIPE for the buffered output to be APPENDED
179179 stderr - None or file name or PIPE or STDOUT for the unbuffered error output to be APPENDED
180180 ATTENTION: PIPE is a buffer in RAM, so do not use it if the output data is huge or unlimited
0 commit comments