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 322abb2
Browse filesBrowse the repository at this point in the historyBrowse files
improvement(sandbox): pause idle chat workbenches instead of keeping them running (#9452)
* improvement(sandbox): pause idle chat workbenches instead of keeping them running
- Session sandboxes now pause after a 5-minute idle lease (was: kept running for
20 minutes, then killed). Resume keeps files, packages and processes and takes
well under a second; paused sandboxes are not billed and do not count toward
the provider's concurrency limit.
- A new cleanup-session-sandboxes cron kills workbenches paused for more than 15
minutes, so a workbench is still discarded about 20 minutes after its last use.
Each kill runs under the session lock and re-checks the sandbox's own info,
so a just-resumed workbench is never killed.
- Streamed workbench writes and upload snapshots lease their full transfer
budget so a machine cannot pause mid-transfer.
- E2B Mothership sandboxes are priced at their template's 2 vCPU / 1 GiB
instead of the 4 GiB Function profile.
* chore(helm): bump chart version for the session sandbox cleanup cron
* fix(sandbox): bound the session sandbox sweep by a deadline, not a batch size
| Idempotency key cleanup | `/api/webhooks/cleanup/idempotency` | `0 5 * * *` | Deletes deduplication records older than seven days |
192
193
193
194
Subscription renewal covers Microsoft Teams chat triggers. Their Graph subscriptions last at most three days; rich notifications have a shorter limit. Gmail, Outlook, Drive, Calendar, and Sheets use the per-minute polling jobs instead. See [Microsoft Graph subscription lifetimes](https://learn.microsoft.com/en-us/graph/change-notifications-overview). SCIM reconciliation calls its authenticated endpoint directly each hour; it does not require Trigger.dev.
0 commit comments