Skip to content

Add execution_time to activity execution info#807

Merged
fretz12 merged 3 commits into
mainfrom
fredtzeng/saa-start-delay-desc-list
Jul 1, 2026
Merged

Add execution_time to activity execution info#807
fretz12 merged 3 commits into
mainfrom
fredtzeng/saa-start-delay-desc-list

Conversation

@fretz12

@fretz12 fretz12 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What changed?
Added execution_time to ActivityExecutionInfo (returned by DescribeActivityExecution — the time the activity is requested to start, computed as schedule_time + start_delay. Reflects the latest start_delay value if it was updated via UpdateActivityOptions.

Why?
Exposing execution_time makes the desired fire time directly observable in Describe.

@fretz12 fretz12 marked this pull request as ready for review June 18, 2026 22:58
@fretz12 fretz12 requested review from a team as code owners June 18, 2026 22:58
Comment thread temporal/api/activity/v1/message.proto Outdated

// The time at which the activity is requested to start, computed as `schedule_time + start_delay`.
// Same as `schedule_time` if `start_delay` is not set.
google.protobuf.Timestamp requested_start_time = 38;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this has the same semantics as execution_time in workflow. Have we discussed whether to give them the same name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to execution_time. Also actual_start_time is dropped, as discussed

@fretz12 fretz12 force-pushed the fredtzeng/saa-update-opts-start-delay branch from 95d0524 to 81a31ea Compare June 30, 2026 21:43
@fretz12 fretz12 force-pushed the fredtzeng/saa-start-delay-desc-list branch from 1f544ec to 5d01c86 Compare June 30, 2026 21:57
@fretz12 fretz12 changed the title Add requested_start_time and actual_start_time to activity execution info Add execution_time to activity execution info Jul 1, 2026
@fretz12 fretz12 requested a review from dandavison July 1, 2026 17:54
Base automatically changed from fredtzeng/saa-update-opts-start-delay to main July 1, 2026 20:43
@fretz12 fretz12 force-pushed the fredtzeng/saa-start-delay-desc-list branch from 3738191 to 390d4af Compare July 1, 2026 21:05
@fretz12 fretz12 merged commit 2ea99cd into main Jul 1, 2026
4 checks passed
@fretz12 fretz12 deleted the fredtzeng/saa-start-delay-desc-list branch July 1, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants