PipedreamHQ / PipedreamHQ/pipedream
Ability to log to "workflow", not just job step, e.g. show `$.flow.exit` message near top of workflow
- Dominant language
- JavaScript
- Stars
- 11.7k
- Forks
- 5.8k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 102
Description
Slack discussion: https://pipedream-users.slack.com/archives/CN1BUB92B/p1685634645196539
Excerpts:
Quick example, I've got a workflow that runs daily that archives some data if it old enough. In the Job Step I have a log message for that. In my mind though this info is an overall result of the entire workflow, and I thought if I'd log it to the top of the workflow for easy consumption if I am reviewing workflows or debugging, that would be nice. In this case, it might be "0 items archived" or "10 items archived".
another example, is I use data stores, so at the end of a workflow I may want to log the state of the data store. Just so if I need to reference the info for debugging. I recently had a bug with my code updating a google sheet, I think i could have found the problem quicker if I wasn't clicking through a bunch of job steps and their logs individual logs.
Pierce recommended:
Maybe something like $.flow.result() or $.flow.summary() could be added to track the overall results of the flow.
Contributor guide
Assessment
This issue has not been assessed yet.