human-in-the-loop¶
Approvals (M6).
Generated by make records from the decisions whose topic (or also) is this one; edit the decisions, not this page.
Current¶
Approvals and questions¶
The master holds approval and question steps (D283, planned (M6)):
approveandaskdeclare anasktask with its question, answer schema, approvers and timeout. When ready it waits on the master for an answer, without running Python or occupying a worker or watcher slot.Approval and question answers have typed outputs (D284, planned (M6)):
approveproduces a yes-or-no answer;askaccepts aLiteral,Enum, dataclass or pydantic model. The answer is the step’s output and the master validates it against its schema.A rejected approval has the Rejected outcome (D285, planned (M6)): A no answer ends an approval with
Rejected..on(Rejected)branches on it, while tasks downstream through plain>>are skipped.Approvers default to users who may trigger the DAG (D286, planned (M6)): Anyone who may trigger the DAG can answer by default.
approversnarrows access to users or groups, andfour_eyes=Trueexcludes the run’s initiator.Questions time out with the TimedOut outcome (D287, planned (M6)): An ask step uses its
timeout, or[ask] default_timeoutwhen absent. The default is seven days; expiration producesTimedOut.Pending questions appear in the UI, CLI and notifications (D288, planned (M6)): The UI has a Waiting for you list, badge and task-panel answer form; the CLI provides
schedr runs answer. AWAITING_FOR_ANSWERnotification is sent through configured channels, with email linking to the task.Answers are final and recorded in the command log (D289, planned (M6)): Each answer records who answered, when, what they answered and an optional comment in the command log. The task panel shows the record; an answer is final.
Replaced¶
None.
Where in code¶
None named by the decisions yet.
Open¶
None.
Details and edge cases, with the reasons; read them before changing this:
archive/PROJECT.md: Human in the loop (M6)