Quiet Hours
Stop overnight test runs from spinning your fans up: agents share a capped slice of the CPU during the hours you sleep. Set the hours and the cap with a slider, from 5% to 100% of the machine. The cap covers every agent on the machine and every command an agent starts, and leaves bb itself alone. A crescent after each thread's title shows when it is in force. Needs bb running as a systemd service on Linux.
Overview
What you get
- A Quiet Hours page in Settings with two time fields and a slider. The hours are on the clock of the machine that runs bb and may cross midnight. The slider sets the cap from 5% to 100% of the whole machine, and shows what that is in cores.
- A status card on that page that says whether the cap is in force right now, and when it starts or lifts.
- A crescent after the title of the open thread while the cap is in force, so a slow test run at night explains itself.
- A command for agents and terminals:
bb quiet-hours status, andbb quiet-hours set --hours 23:00-07:00 --cpu 10.
What is limited
Inside the hours, every agent bb runs on that machine and every command an agent starts (tests, builds, dev servers) share the capped slice. bb's own server is not limited, so the app stays responsive. Outside the hours nothing is limited.
A change to the hours or the cap applies at once. Agents are picked up once a minute, so an agent that starts during quiet hours can run unlimited for up to a minute; whatever it starts after that is limited from its first moment.
What to expect
Work that agents do at night takes longer. At a 10% cap a test run can take several times as long as by day, and a command with a short timeout of its own can fail for that reason alone.
How it works
bb's service keeps its server and its agents in one control group, and a CPU quota there would starve the app. So the plugin moves each agent process into a group of its own, a systemd slice named bb-quiet.slice, and sets a CPU quota on that slice. Outside the hours it clears the quota. Nothing is written to disk, so a reboot starts unlimited.
Requirements
- Linux, with bb running as a systemd user service. On macOS and Windows the page says the limit is not available and nothing is changed.
- The cpu controller delegated to the user's systemd instance, which is the default on current distributions.
- Only agents on the machine that runs the bb server are limited. Agents on other connected machines are not.
Processes the plugin has moved are no longer part of bb's service, so restarting bb does not stop them.
More in Utilities 38
Inspect or control the computers bb runs on.



