Files
zen/test-data/sleep-function.json
T
stefan-gorules 55a6320580 fix: python async (#309)
* fix: python async

* fix python async
2025-02-08 17:28:58 +01:00

34 lines
889 B
JSON

{
"contentType": "application/vnd.gorules.decision",
"nodes": [
{
"type": "inputNode",
"id": "2d560c7d-3528-43ed-88d8-28f4d8ef17be",
"name": "request",
"position": {
"x": 295,
"y": 175
}
},
{
"type": "functionNode",
"content": {
"source": "import zen from 'zen';\nimport http from 'http';\n\n/** @type {Handler} **/\nexport const handler = async (input) => {\n await console.sleep(50);\n\n return { hello: 'world' };\n};\n"
},
"id": "66cb12f4-4cdd-4422-850b-4534f959407d",
"name": "function1",
"position": {
"x": 600,
"y": 175
}
}
],
"edges": [
{
"id": "b65ca09a-a010-4fc2-bca1-f7cf21a0ddc3",
"sourceId": "2d560c7d-3528-43ed-88d8-28f4d8ef17be",
"type": "edge",
"targetId": "66cb12f4-4cdd-4422-850b-4534f959407d"
}
]
}