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
Commit 6f254bb
Browse filesBrowse the repository at this point in the historyBrowse files
feat(insights): record daily member activity per surface for organization adoption (#10532)
* feat(insights): record daily member activity per surface for organization adoption
Counts each person's use of the Assistant, agent chats, the Search page,
the Search MCP server, the Slack app and their own workflow runs per UTC
day in organization_member_activity_daily, only for members of the
owning organization. Adds a daily retention sweep (member activity after
400 days, Search MCP call metadata after 270 days) and a backfill script
for the history already in copilot_messages and the MCP invocation log.
* fix(insights): count only runs a person starts, dedupe forked backfill turns, bound retention batches
* fix(insights): keep sweeping after a batch timeout, replace backfilled days whole
| Stale execution cleanup | `/api/cron/cleanup-stale-executions` | `*/30 * * * *` | Fails runs whose worker died without finishing — workflow executions, background jobs, table jobs and table runs — so they stop showing as running |
184
184
| OAuth token cleanup | `/api/cron/cleanup-oauth-tokens` | `0 * * * *` | Deletes access and refresh tokens after the retention tail |
185
+
| Activity history cleanup | `/api/cron/cleanup-activity-history` | `45 4 * * *` | Deletes organization adoption history past its retention: daily member activity after 400 days, Search MCP call metadata after 270 days |
185
186
| Workspace source staging cleanup | `/api/cron/cleanup-source-staging` | `30 * * * *` | Deletes binary files staged for a workspace source apply a day after they were last staged |
0 commit comments