CHecking last run time

Hi, brand new to n8n an want to make sure I’m not missing something. I want track the last completed date/time of a run of a workflow to not duplicate process items the next time. getWorkflowStaticData seems to be the way to go but doesn’t work when I test manual which make it hard to test. What am I missing?

If you need an activity log for your stream it might be useful to record everything in a file at the end of the stream.

Unless you just need the log present within the individual nodes or the dedicated Executions section to see all the activities done by the flow.

Tell us something deeper please :slight_smile:

I am just trying to track the last completed run of the workflow so that the next run uses that time as an input and only looks for items newer than it.

Ehy!
it may be appropriate for you to add the “return intermadiate steps” option for nodes with Agent AI but not knowing how the workflow is done I could give you information that is not useful for your doubt.

the other thing you could use if you want to have the last available item is to create a loop within the workflow.

the cases can be many, let me know.