resume active sessions
This commit is contained in:
1 parent
9e94c05fb6
commit
917a361370
19 files changed
+871
-42
No files matched your search
+2
-1
@@ -36,7 +36,7 @@ Copy `config.example.toml` and edit it. The important parts:
|
||||
| Setting | What |
|
||||
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
|
||||
| `system` | The build from step 2, e.g. `/var/lib/slackerbot/agent-system` |
|
||||
| `state_dir` | Where `state.json`, env files and cluster certificates live |
|
||||
| `state_dir` | Where `state.json`, in-flight replies, env files and cluster certificates live |
|
||||
| `[agent_env]` | Environment for goose (provider, model, API key). `$VARS` are expanded from the bot's environment |
|
||||
| `[container]`, `[max_container]` | Default and largest container size |
|
||||
| `[host_reserve]` | RAM/CPU kept free for the host |
|
||||
@@ -151,5 +151,6 @@ Check the log for the node's capacity line and "connected to Slack", then DM the
|
||||
|
||||
- **Permissions** live in the master's `state.json` after the first start, and editing the config doesn't change them. To start over from the config, stop the master and delete the `permissions` entry from `state.json`.
|
||||
- **Deleting a home folder for good:** stop its container, run `btrfs subvolume delete <drive path>/<u-… or c-…>`, then, with the bot stopped, remove its owner from `state.json`. Nothing deletes homes automatically, so their guaranteed space stays taken. This includes homes left on a dead slave after **Create new container**.
|
||||
- **In-flight replies** are in `state_dir/in-flight-<channel>.json`, one file per channel while it has a reply in progress. The bot picks them back up when it starts. To stop a reply from being resumed, stop the bot and delete its entry (or the file).
|
||||
- **Upgrading** the bot doesn't stop running containers, because each runs in its own `slackerbot-<machine>.service` unit.
|
||||
- Find user and channel IDs in Slack with **Copy member ID** on a profile, or at the bottom of a channel's **About** tab.
|
||||
Reference in new issue
Block a user