Add a `endedAtEpochMs` on `workflowContext.lastSuccessfulRun`

I have a workflow that runs every hour. This workflow needs to process all of our application's events of the last hour.

Today I leverage workflowContext.lastSuccessfulRun.startedAtEpochMs to look at all of the events that were added since the last run started.

I'd like to be able to look at all the events that were added since the last run COMPLETED. This would make it easier to avoid processing the same event twice.

Thank you

1 Like

Hello @Guillaume_Simard,

Great idea, this makes sense. I would imagine that under the hood we could do some time stamp comparison so that instead of using .startedAtEpochMs the new function could check against the time stamp for its own previous completion.

I can make a feature request for this and keep you updated on any news I hear :slightly_smiling_face:

1 Like