Concepts
Offline machines
When a machine is off or asleep its jobs stay on the board, and new jobs for it wait on Picnic and start the moment it comes back online.
Machines go offline: a laptop closes, a Mac mini restarts for an update, the office Wi-Fi drops. Picnic is built so that doesn't get in your way. An offline machine's jobs stay on your board, and you can still plan work for it. Jobs you make for it wait and start as soon as it's back.
What you see
An offline machine's jobs stay in their columns, showing what Picnic last saw: title, mode, repository, branch, pull request and state. Their chat, screenshots, videos and results arrive when the machine reconnects, because those live on the machine.
The machine itself shows as offline in the Factory tab, with when it was last seen.
Planning work for an offline machine
New job lists offline machines too, marked as offline, with their repositories. You can:
- add jobs to its Backlog
- create jobs that start straight away: they wait on Picnic and start the moment the machine is online
- edit, reorder, start, cancel and delete jobs that are waiting for it
- delete its existing jobs, or move backlog jobs to another machine: done on the machine when it reconnects
A waiting job says so on its card and in Details: "Starts when Mac mini is online", or "Goes to Mac mini when it's online" in Backlog.
The same works through the API and MCP server: offline machines still list their jobs (with online: false) and repositories, and jobs made for them come back with waiting: true.
What happens when it comes back
When the machine reconnects, the relay:
- delivers its waiting jobs in the order they were made, with any reordering you did
- deletes jobs you deleted while it was away
- reads its jobs and repositories again so the board is current
Jobs that should start, start. Others land in Backlog.
Right after a machine connects, a waiting job may briefly drop off the board and reappear as the machine takes it. That's normal.
If the machine refuses a waiting job
Occasionally a machine can't take a job it was sent, for example because the repository was moved or deleted while it was away. The job then shows as failed with the machine's reason, until you delete it. Picnic checks the repository against the machine's last known list when you make the job, so this is rare.
What Picnic stores for this
To show and plan work for an offline machine, the relay keeps:
- a stub of each job: title, mode, repository, branches, pull request, state, badge, position, who created it and the times. Never the prompt, chat, questions, results or files
- each machine's list of repositories: path, name and default branch
- a job made for an offline machine, whole, prompt included, only until the machine takes it. Then it's removed from the relay
That held job is the one place the relay keeps job content (besides loops, which keep their prompt).
Running jobs when a machine goes offline
If a machine goes offline while it's running jobs, they stop with it, because the work happens on that machine. When it comes back, Picnic resumes running sessions, goes back to waiting on CI for jobs that were, and parks any open questions so you can still answer them.
If a machine keeps dropping off, see A machine is offline, and for machines that should always be available, An always-on machine.
Loops and offline machines
A loop pointed at an offline machine holds its job the same way, and the job starts when the machine is back. A loop set to any machine only picks online machines.
