Is There a Way to Obtain Workflow Execution History via API?

This topic was automatically generated from Slack. You can find the original thread here.

is there a way to get workflow execution history via API?

Based on the provided documentation, there is no direct mention of retrieving workflow execution history via an API in the Pipedream documentation sections provided. The documentation focuses on event and execution history within the Pipedream UI, such as the event inspector and the global event history UI, but does not explicitly cover accessing this information through an API. Additionally, the documentation mentions that the ability to replay workflow events programmatically is not available as of now, as indicated in a GitHub issue linked in the docs. While this is related to replaying events rather than fetching execution history, it suggests that some aspects of workflow event handling are not yet accessible programmatically. Given this information, it appears that Pipedream does not currently offer a documented API endpoint for retrieving workflow execution history directly. For the most accurate and up-to-date information, I recommend reaching out to Pipedream support or checking the official Pipedream API documentation for any recent updates that might not be covered here. You can find more support options at Support - Pipedream.

Heya! I hope all is well? Maybe there’s more to this answer and Pi isn’t aware of it? I will explain our requirement - a workflow timed out due to the amount of data. Effectively the amount of data increased slowly and the execution time creeped up slowly until it hit the limit. I want to build a workflow that on a weekly basis checks the last execution of all workflows and if it reached say 80% of the time limit, then to notice about it for someone to investigate. This means we need the following information via API:
• Get list of all workflows - if this doesn’t exist we can create a static list of the workflows we want to monitor
• Get workflow configured time limit
• Get workflow execution log - grab the latest execution and get the execution time
Thoughts? :slightly_smiling_face:

Pi is correct, there’s not an Event History API available at the workflow level at this time.

However, you can use subscriptions to set up your own logging system with a dedicated workflow that pipes these metrics to CloudWatch for example: