Create a Python Method in the existing FlowMetr Python class to create an error for a flow run, which can be called like:
flow1.error(node_id="error-1", run_id="my first run", logs="Called Support Agent")
logs: optional
The method will create a http get call to the flowmetr backend like
https://flowmetr.com/hooks/339a7c52-58eb-4537-ab92-9a57f0bae96b?run_id=2af8344d284bb641&node_id=error-1&node_type=error&logs=GotError&project_token=f815f37293f415e33e3b8542cc6eefa433809e1777774632f2343668792f3dd1
the method has to set the node_type "error"
Test:
Can be tested locally with FlowMetr started through docker
compose or with flow in Flowmetr Cloud.
When successful a previously started flow triggers an error, which can be watched in the related public dashboard:
https://flowmetr.com/public/projects/f0cf4767cd9c42f2713954c1ea9cc097b31488b6
Create a Python Method in the existing FlowMetr Python class to create an error for a flow run, which can be called like:
flow1.error(node_id="error-1", run_id="my first run", logs="Called Support Agent")
logs: optional
The method will create a http get call to the flowmetr backend like
https://flowmetr.com/hooks/339a7c52-58eb-4537-ab92-9a57f0bae96b?run_id=2af8344d284bb641&node_id=error-1&node_type=error&logs=GotError&project_token=f815f37293f415e33e3b8542cc6eefa433809e1777774632f2343668792f3dd1
the method has to set the node_type "error"
Test:
Can be tested locally with FlowMetr started through docker
compose or with flow in Flowmetr Cloud.
When successful a previously started flow triggers an error, which can be watched in the related public dashboard:
https://flowmetr.com/public/projects/f0cf4767cd9c42f2713954c1ea9cc097b31488b6