What is the best way to go about calculating the duration of your workflow? It doesn’t need to be exact, it could be one of the last nodes, if not the last node, but I’d like to be able to calculate this to be able to store to an external analytics tool.
You can extract the executiontime of nodes from the executions table in the database. Also possible to get those via the API call where you extract the execution data.
Like @aya Said you can also store the timestamps and calculate it that way, this is an awesome option if you want to see certain durations in a flow to keep track of things. Can also be combined with some data from the flow to generate a log of the execution.
Hi Aya - I saw that solution, but thought there would be a better way to calculate using the n8n node and some sort of execution metadata but this should be fine!