Status, logs and explain
Follow a job's state, output and Fluid's decisions about it, from the CLI or a coding tool.
Warnings and limits
- A job whose program has ended stays
runninguntil its provider confirms the machine's end (minutes for an EC2 GPU instance); the console reads it as Finishing with what it waits for. Nothing after the program's exit is charged, and a stop sent then changes nothing. - Past 256 MiB a job's log keeps its first 32 MiB and its last 224 MiB. One line stands for what lay between.
- While nobody reads a job's log, its output leaves the machine every 5 minutes or once 4 MiB wait. A machine that goes without notice in between takes those lines with it.
- A read that waits for new output waits at most 10 s.
fluid psshows active jobs and the 5 that ended last;--alland--jsonlist the rest. Listings and name lookups reach the newest 500 jobs.- Fluid keeps a job's newest 20,000 events and 20,000 samples (one sample every 10 s, about 55 hours).
- A job name refers to the newest job with that name; a start of an id must match one job only.
- When a move or a checkpoint waits for the program to reach a point where it can pause (a long native call, a running thread, an open file outside the working directory, a child process), the job's events say why, as
pause, once per reason in 5 minutes;fluid explain JOBshows them. - The job list and the overview answer from a cache kept 20 s: a job's creation, status change or deletion shows at once, other changes (cost, progress, a machine's state) within 20 s.
- A daemon that stops answering leaves the job
runningwith the time it was last heard (unreachable_since; the console says its daemon has not answered since then). Fluid asks the provider after 10 minutes of silence (2 minutes past a spot notice's deadline) and declares the state lost only when the provider says the machine is gone twice, a check apart, with the daemon still silent; each event says what it waits for. A suspend or move asked meanwhile is refused with that, not with "the job goes on".
Jobs
fluid ps
fluid ps --all
fluid status JOB
fluid events JOBfluid status JOB shows one job's cost, saving, progress, moves and last few events, and fluid events JOB its whole retained history, oldest first. Once the job has ended, fluid status JOB also prints the result its script said, where it printed one: see The job's result.
JOB in every command is a job id (job-1030-...), a unique start of one, or a job's name (the newest job with that name).
fluid and fluid status end with the workspace's plan: the compute used this month against its limit, and the day the month ends, a UTC day. See Plans and billing.
| State | What it means |
|---|---|
queued | accepted, waiting for its turn |
provisioning, starting | a machine is being made, then the job's environment installed |
running | the script runs |
moving | the program is paused and travelling to another machine |
suspending, suspended | its state is being saved, then kept in storage with no machine running |
resuming | it is being brought back on a machine |
finished | the script exited with code 0 |
failed | the script exited with an error, or the job could not go on |
stopped | someone stopped it, or a policy did |
no_capacity | no offer could start a machine |
Logs
fluid logs JOB
fluid logs JOB --tail 50
fluid logs JOB --follow--follow prints until the job ends; Ctrl-C stops following, not the job.
How soon new output arrives depends on who is reading:
| Who reads | New output arrives |
|---|---|
you, watching: the console's Logs tab on screen, or fluid run or fluid logs --follow in a terminal, for 10 minutes from the start and from each time you press Enter | about every 2 seconds |
| a script, a coding tool or a terminal left attached | about every 15 seconds |
| nobody | every 5 minutes, or once 4 MiB wait |
fluid logs JOB asks for the newest output before it answers, so what it prints is a few seconds old at most. A failure, a spot notice, a move, a suspension and the job's end send everything at once.
Why Fluid did something
fluid explain JOBlists every policy decision about the job, oldest first: when, which policy (spot, return, oom, cheaper, lifetime, rightsize, budget, idle or ttl), what it did and why. A look for a cheaper offer that found nothing worth moving to is listed only when its reason changes.
Exit codes
fluid run (while it follows the job) and fluid logs --follow exit with the script's own exit code when the job finishes. Otherwise:
| Code | Meaning |
|---|---|
| 0 | done |
| 1 | an error, or the job failed or was stopped |
| 2 | wrong usage |
| 3 | the job is suspended |
| 4 | no capacity |
| 130 | you detached with Ctrl-C |
From a coding tool
The MCP tools give the same views: status (one job, or the overview), jobs (the list), logs (the last lines, or exactly what came after an earlier read), explain, events and samples (CPU, memory, GPU and progress points). See MCP tools.
Train on several GPUs
Run one process per GPU on one machine or across a group of AWS EC2 or Google Compute Engine machines. Move the ranks together as one job.
Libraries and frameworks
Which training, tracking and data libraries Fluid can pause and move, what each one's limit is, and where Fluid tells you.