Fluiddocs
Storage

Outputs and logs

What Fluid saves when a job ends, how to download it, and how long outputs and logs are kept.

Warnings and limits

  • A job's output is kept 7 days after it is saved, then deleted. A download after that answers "the saved workspace expired".
  • A job's log is kept, with no expiry. A part written before Fluid kept logs is deleted 30 days after it was written.
  • 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 job's result is read from the last 64 KiB of its log, once the job has ended. Print the result line last.
  • No output is saved when you stop a suspended job, when a suspended job's checkpoint expires, or when the job's machine was lost.
  • Outputs are kept in Fluid's storage without the per-job encryption checkpoints get. Keep files you would not upload out of the working directory.
  • fluid pull works only once a job has ended.

What the output is

When a job ends, Fluid saves each machine's working directory as a compressed archive (.tar.zst). It contains the uploaded project and the files your script wrote there. Left out, as on upload: .git, virtual environments, files that may hold credentials, and links that point outside the directory.

It is saved when the script finishes or fails, and when you stop a running job (the script gets up to 10 s to exit first). Fluid sets no size limit on it; large outputs upload in parts.

Download it

fluid pull JOB
fluid pull JOB ./results

Without a directory, the output is unpacked into a directory named after the job. fluid pull is refused while the job is still running or suspended. The console's run page provides download links valid for 1 hour.

For a multi-node job, fluid pull JOB ./results writes each machine's files under ./results/node-0/, ./results/node-1/ and so on. Two machines can both write metrics.json and keep separate copies. fluid status JOB --json lists each machine's archive under job.output_members, with its node_rank and available flag. A pull that cannot retrieve all the archives reports the missing members.

Write results you want to keep inside the working directory. Files written elsewhere on the machine (/tmp, your home directory on the machine) are not saved.

Logs

fluid logs JOB --tail 100
fluid logs JOB --follow

Fluid keeps what the job prints in its log as it runs, and keeps the log: nothing deletes it. Past 256 MiB the log keeps its first 32 MiB and its last 224 MiB, and a read shows one line where the rest was. A log part written before Fluid kept logs is deleted 30 days after it was written: a read shows one line for it, and answers "log expired" once the whole log is gone.

A process that a fatal signal ends, a segmentation fault in a library for one, first writes to the log where each of its threads was in Python: the line Fatal Python error: Segmentation fault, then each thread's frames, the newest first. The lines of your script and of the libraries it uses are named by file and line. Fluid's own steps are not among them.

How soon new output shows depends on who is reading: see Status, logs and explain.

The job's result

A job can say its own result. Print one line at the end of the script: the mark ::result::, then one JSON object.

import json

print("::result::", json.dumps({"test_loss": 0.0726, "accuracy": 0.914, "saved": "outputs/model.pt"}))

Once the job has ended, Fluid reads the line from the end of the job's log. The result then shows:

  • on the run's page in the console
  • in fluid status JOB, as a result line, and as job.result with --json
  • in the answer of the MCP status tool, for a coding tool

Each name has a number, a string, or true or false. A result holds at most 24 names, a name has at most 48 characters, and a string is cut to 200 characters. Several lines add up: a later line adds its names, replaces a value said again, and takes a name back with null. A job that has not ended has no result yet. A failed or stopped job has the result it printed before it ended.

The line is in the job's log like any other line. Do not print a secret in it.

Where your job's output goes

What your job prints stays on its machine until a part of it is due. Where the machine and the store allow it, the machine then sends that part straight to your job's store, compressed, at most 8 MiB of output at a time, rather than through Fluid. On AWS that upload is egress from your account to the store, billed by your cloud like any other upload from the machine. Otherwise the output goes through Fluid, uncompressed on the way: stores on Azure Blob and Google Cloud Storage always take it that way, and a job's events say so when a machine that cannot reach the store falls back to it.

fluid logs, the coding tools and the console read a log's parts from the store as well, each through a link that works for that one part for 5 minutes, and read through Fluid where they cannot reach the store.

How long things are kept

See Checkpoints and retention for every item.

On this page