You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sweep: Routine.last says when it last ran, but it holds the last scheduled run #38
Rule:docs/specs/routines.md:151-153: "A run now moves nothing: a run now does not move the routine's last success, nor its last scheduled run. Only scheduled runs move them".
schema/rpc/activity.yaml:50: {name: last, type: string, optional: true, doc: "When it last ran, RFC 3339 in UTC."}, and the generated api/activity.go:80: "Last is when it last ran".
internal/routine/scheduler.go:629-630 fills it from the last scheduled run: a.Last, a.LastOK = st.LastScheduled.UTC().Format(time.RFC3339), st.LastOK.
Why it matters: the API contract (and the web app that shows last) says "when it last ran", but after a Run now the field keeps the older scheduled time, so a reader can take the run now for one that did not happen.
Suggested fix: change the schema's doc to "when its last scheduled run was" (and regenerate), or add a separate field for the last run of any kind. Size: S.
Activity