{ id: "approve", type: "human", config: { title: "Send this digest?" } }{"id": "approve", "type": "human", "config": {"title": "Send this digest?"}}发生什么
- 跑步状态开始
waiting一步也一样 - 下游没有下游运行
- (stepID, 数据) 批准它。
- 传递的,成为步骤的输出, 由链链的其余部分读取。
await run.resume("approve", { approved: true, recipient: "team@example.com" });
// Downstream
{ id: "send", type: "mail.send", config: {
box: "ops@example.com",
to: "{{steps.approve.output.recipient}}",
subject: "Digest", text: "{{steps.write.output.text}}" } }run.resume("approve", {"approved": True, "recipient": "team@example.com"})
# Downstream
{"id": "send", "type": "mail.send", "config": {
"box": "ops@example.com",
"to": "{{steps.approve.output.recipient}}",
"subject": "Digest", "text": "{{steps.write.output.text}}"}}三种类型需要一种上游
mail.send, hosting.deploy 和 domain.records
谈话中,每次询问时都问过,没有模式打开。 跑步没有人可以问,所以图表需要批准,没有定义的,在保存时被拒绝。
上流 意指到达它的路径。 人类在另一分支上的一步, 并不覆盖跑步不经过它就能到达的一步。
无限期地等待
不存在过期失效。 自动失效的批准会让一个连锁摊间,没人告诉任何人,因此没有人会批准的竞选就被关闭。 (取消)记录上说取消
建立批准箱
const waiting = (await workflow.runs()).filter((r) => r.data.status === "waiting");waiting = [r for r in workflow.runs() if r.data["status"] == "waiting"]无法测试
运行Step() 答答答答答答 step_not_executable:没有什么可以执行,只有某种东西可以批准。