agent-substrate / agent-substrate/substrate

Add time metadata to actors

Open
#277 3 comments 1 reaction 0 assignees View on GitHub
area/api area/api-machinery kind/feature
Dominant language
Go
Stars
1.8k
Forks
316
Avg merge
2d 43m
Merged PRs (30d)
287

Description

In many cases it's useful to have some time metadata for actors (e.g. created / updated time). Today there are no fields to track this.

- `create_time`: Timestamp when actor is created. Immutable.
- `update_time`: Last time the actor was modified in any way (suspended, resumed, updated, etcCanc).
- `last_resume_time`: Timestamp of the most recent transition into RUNNING.
- `total_running_duration`: Cumulative time the actor spent running, since creation. Never resets. (this could be tricky to get right with high resolution if ate-apiservers have some clock skew)

The https://google.aip.dev/142 has some guidelines on how to deal with times in gRPC APIs. We should probably use the `google.protobuf.Timestamp` and `google.protobuf.Duration` well-known protos.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.