Skip to content

Commit 08899a1

Browse files
committed
Task description fixed
1 parent 7d76105 commit 08899a1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

mpepool.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,13 @@ def __init__(self, name, onstart=None, ondone=None, onfinish=None, params=None,
213213
CONTEXT OF THE CALLER (main process) with the single argument, the task. Default: None
214214
ATTENTION: must be lightweight
215215
params - additional parameters to be used in callbacks
216-
latency: float - lock timeout in seconds: None means infinite, <= 0 means non-bocking, > 0 is the actual timeout
217216
task: Task - optional supertask
217+
latency: float - lock timeout in seconds: None means infinite, <= 0 means non-bocking, > 0 is the actual timeout
218218
stdout - None or file name or PIPE for the buffered output to be APPENDED
219219
stderr - None or file name or PIPE or STDOUT for the unbuffered error output to be APPENDED
220220
ATTENTION: PIPE is a buffer in RAM, so do not use it if the output data is huge or unlimited
221-
221+
222+
# Automatically initialized and updated properties
222223
tstart - start time is filled automatically on the execution start (before onstart). Default: None
223224
tstop - termination / completion time after ondone.
224225
numadded: uint - the number of direct added subtasks

0 commit comments

Comments
 (0)