feat(workflows): add sandbox reaper + cost report scheduled workflow#201
Closed
0xprames wants to merge 1 commit into
Closed
feat(workflows): add sandbox reaper + cost report scheduled workflow#2010xprames wants to merge 1 commit into
0xprames wants to merge 1 commit into
Conversation
A daily cron workflow that scans sandbox_sessions and posts a fleet digest to Slack: active count, breakdown by state and harness, active age buckets, long-idle sessions, terminal/reapable rows, and a rough cost estimate (active uptime x configurable pod-hour rate). Read-only — it reports; the API's orphan reaper does the reaping. Auto-discovered as a built-in workflow. Inert by default: the schedule is skipped unless SANDBOX_REPORT_SLACK_CHANNEL is set. All knobs are env-tunable (SANDBOX_REPORT_CRON/_TZ/_IDLE_THRESHOLD_S, SANDBOX_POD_HOURLY_USD). Uses a checkpointed ctx.step snapshot and exactly-once ctx.post_to_slack delivery. Tests cover aggregation, age bucketing, cost math, channel resolution, and rendering (pure logic, no DB).
Member
|
We've merged the Rust rewrite in #344, meaning the old API and Slackbot services are deprecated. As such we're closing this PR - if you think this is a mistake, please reopen the PR and ping me. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A daily cron workflow that scans sandbox_sessions and posts a fleet digest to Slack: active count, breakdown by state and harness, active age buckets, long-idle sessions, terminal/reapable rows, and a rough cost estimate (active uptime x configurable pod-hour rate). Read-only — it reports; the API's orphan reaper does the reaping.
Auto-discovered as a built-in workflow. Inert by default: the schedule is skipped unless SANDBOX_REPORT_SLACK_CHANNEL is set. All knobs are env-tunable (SANDBOX_REPORT_CRON/_TZ/_IDLE_THRESHOLD_S, SANDBOX_POD_HOURLY_USD). Uses a checkpointed ctx.step snapshot and exactly-once ctx.post_to_slack delivery.
Tests cover aggregation, age bucketing, cost math, channel resolution, and rendering (pure logic, no DB).