wf-async-broken / workflow.json
hmb's picture
hmb HF Staff
Create workflow.json
df34274 verified
Raw
History Blame Contribute Delete
1.98 kB
{
"schema_version": "2",
"name": "Parallel Test",
"runtime": { "default": "client" },
"references": [
{
"id": "ref_input",
"role": "reference",
"label": "Prompt",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "Text", "type": "text" }],
"outputs": [{ "id": "out", "label": "Text", "type": "text" }],
"data": { "out": "hello" },
"x": 60, "y": 180, "width": 220, "height": 160
}
],
"operators": [
{
"id": "op_slow",
"role": "operator",
"kind": "fn",
"fn": "slow_fn",
"label": "slow_fn",
"inputs": [{ "id": "in_text", "label": "text", "type": "text" }],
"outputs": [{ "id": "out_0", "label": "output", "type": "text" }],
"data": {},
"x": 340, "y": 120, "width": 220, "height": 120
},
{
"id": "op_fast",
"role": "operator",
"kind": "fn",
"fn": "fast_fn",
"label": "fast_fn",
"inputs": [{ "id": "in_text", "label": "text", "type": "text" }],
"outputs": [{ "id": "out_0", "label": "output", "type": "text" }],
"data": {},
"x": 620, "y": 120, "width": 220, "height": 120
}
],
"subjects": [
{
"id": "sub_result",
"role": "subject",
"label": "Result",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "Text", "type": "text" }],
"outputs": [{ "id": "out", "label": "Text", "type": "text" }],
"data": {},
"x": 900, "y": 180, "width": 220, "height": 160
}
],
"edges": [
{ "id": "e1", "from_node_id": "ref_input", "from_port_id": "out", "to_node_id": "op_slow", "to_port_id": "in_text", "type": "text" },
{ "id": "e2", "from_node_id": "op_slow", "from_port_id": "out_0", "to_node_id": "op_fast", "to_port_id": "in_text", "type": "text" },
{ "id": "e3", "from_node_id": "op_fast", "from_port_id": "out_0", "to_node_id": "sub_result", "to_port_id": "in", "type": "text" }
],
"view": { "default": "canvas" }
}