uber-go / cadence-client

Framework for authoring workflows and activities running on top of the Cadence orchestration engine.

Home Page:https://cadenceworkflow.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide workflow start time same as in Temporal GoSDK

longquanzheng opened this issue · comments

Need to sync this small feature from Temporal GoSDK

It is useful to know the start time in workflow for business.

Yeah, we were actually just discussing this lately too. Along with cron-"fired at" time.

How is it built in temporal, and which times do you use? (task-scheduled, workflow-created, cron-timer-fired-database-time, etc?) It'd be interesting for a reference at least.

@Groxx ahh sorry for late response.
I think it's the workflow created time or the first task scheduled time based on the description -- these two won't be too different to use in practice.

https://github.com/temporalio/sdk-go/blob/eaa3802876de77500164f80f378559c51d6bb0e2/internal/workflow.go#L957