Chore briefs carry a one-time id: delegate the first line, worker prints the brief by id
This commit is contained in:
1 parent
62e79b8342
commit
8aa79ab492
5 files changed
+123
-29
No files matched your search
+2
-2
@@ -358,8 +358,8 @@ def due(cwd, claim=False):
|
||||
cl.update({"claim:" + k: now for k, _ in need})
|
||||
with contextlib.suppress(OSError):
|
||||
store.write(store.data("locks", "organize.json"), json.dumps(cl))
|
||||
return ("sisi: the learned rules need organizing (%s). In the background, give the output of "
|
||||
"`sisi rules organize` to a cheap worker and record its answer with `sisi rules organize --record FILE`."
|
||||
return ("sisi: the learned rules need organizing (%s). In the background, delegate just the first line of the output of "
|
||||
"`sisi rules organize` plus \"Run `sisi chore show <id>` and do what it says\" to a cheap worker and record its answer with `sisi rules organize --record FILE`."
|
||||
% "; ".join(m for _, m in need))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user