DEVOPS
Hugging Face Spaces idle-runtime sweep with auto-pause
On a schedule, scans all Hugging Face Spaces for ones running idle past a threshold, pauses them to stop billing, and posts a Slack summary with the estimated monthly savings.
How it runs
The automated pipeline, trigger to output.
- TriggerNightly schedule fires the idle sweep
- ActionList org Spaces with hardware tier and last activityHugging Face
- LogicKeep paid-hardware Spaces idle past threshold
- ActionPause each idle Space runtimeHugging Face
- LogicEstimate monthly savings from paused tiers
- OutputPost Slack digest of pauses and savingsSlack
What it does
Walks your Hugging Face organization's Spaces, finds upgraded-hardware Spaces (GPU/CPU-upgrade tiers) that have been running with no recent traffic, and pauses them so you stop paying for idle compute. It then posts a Slack digest naming each paused Space and the rough monthly cost it was burning.
When to use it
When your team spins up demo Spaces on paid hardware and forgets to pause them. Run it nightly to keep the bill honest without hunting through the dashboard.
How it works
- 1A nightly schedule fires the sweep.
- 2List all Spaces in the org via the Hugging Face API, with hardware tier and last-activity timestamp.
- 3A filter keeps only Spaces on paid hardware whose idle time exceeds the threshold (e.g. 6 hours) and are not flagged keep-alive.
- 4For each match, call the Hugging Face API to pause the Space runtime.
- 5Compute the per-Space hourly rate and sum the projected monthly savings.
- 6Post a Slack summary listing paused Spaces and total savings.
Set it up
What you configure once, before turning it on.
- 1Connect Hugging FaceModels, datasets, spaces — the open-source hub.
- 2Connect SlackChannels, DMs, threads, mentions.
- 3Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 4Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 5Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More DevOps workflows
Slack-approved pause for idle Hugging Face Spaces
On a daily scan it finds idle paid Spaces and posts an interactive Slack approval; on approve it pauses the Space and logs the decision to a GitHub issue audit trail.
Generate a weekly de-flake report and assign Linear cleanup tickets
On a weekly schedule, aggregates the current quarantine manifest and recent flake history, builds a prioritized report.
Block costly Hugging Face Space hardware upgrades in PR review
When a pull request changes a Space's hardware config, it estimates the new monthly cost and posts a GitHub PR comment that flags upgrades crossing a budget ceiling.
Auto-release tests from quarantine once they prove stable
Triggered by a webhook from a nightly stability runner, checks whether quarantined tests have passed enough consecutive runs, removes the stable ones from quarantine in GitHub.
Quarantine a test on demand from a PR comment command
Triggered when an engineer comments a quarantine command on a pull request, validates the test name, commits the quarantine change to that PR branch, opens a tracking issue.
Page on-call when a Hugging Face Space build is stuck or errored
Polls Hugging Face Space runtime status on a schedule and opens a PagerDuty incident when a Space sits in a build or error state past a deadline, with a Slack heads-up.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
