This topic was automatically generated from Slack. You can find the original thread here.
I was just doing some debugging and a feature thought. I’m curious if others think this is a good idea and worth requesting. Basically, it is the idea to log data to the Workflow and not to the job step. Now, each run of a workflow has as log for each step. What I’m thinking though is it would be helpful to log some items to the top of the workflow so when I’m viewing the past runs I have a summary of different info at the top. I’ve got a couple long workflows, so it was a pain scrolling and then correlating across a couple steps. Where if I could log to an overall workflow log and it is display at the top line the execution time and details. What do you think?
OK, I see event history. I think the idea of being able to log something to a run of a workflow, such that it is displayed at the top of a workflow details is helpful rather than in each job step.
I think i should say I use python code blocks a bit. And I like breaking them into different steps. So being able to log a few essential details such that it is Workflow log and not workflow step log would be nice. (not sure if I’m using the exact terms you use, feel free to correct me).
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.
It’s a hack but you could use $.flow.exit(${items} items archived) in an arbitrary last step to use the exit early feature to show that message at the top of the page