FolioFolioDocs

Tasks and jobs

Background work started by an app (such as a 3D render, thumbnail resize, or image generation) is called a job, and the Tasks panel is where you watch and manage every job across your workspace.

Closing the app window or browser tab does not stop a running job. Results land automatically in their destination folders when the job finishes. (On a self-hosted or local workspace server, jobs continue running as long as the workspace server stays up.)

How a job works

  • An app declares its jobs in its manifest and starts one with jobs.submit (see the SDK reference and Example: Sketch).
  • Folio pins each input file to the version that is current when it accepts the job. Editing an input later does not affect a job that has already started.
  • Output files are saved as new versions on the branch the job ran on. Jobs never fail because you or another job edited the same file in parallel: each write creates a separate version in history.
  • Each operation has concurrency and timeout bounds (5 active and 5 queued jobs per operation by default, with timeouts up to 1 hour). See Limits.

A job moves through Queued, Running, Done, Failed, or Cancelled. Just before a worker starts it, a job briefly shows Dispatching.

The Tasks panel

Tasks in the File Browser's title bar lists every job in the workspace, newest first.

  • Running groups both active and queued jobs. Active jobs show their progress bar, with Details to inspect the job and Cancel to stop it.
  • Failed includes both failed jobs and cancelled jobs (marked "Cancelled by request").
  • Done lists finished jobs and the output files they created. Open folder jumps to the destination folder, and Copy ID copies the job ID.
  • Clear done clears finished entries from the Tasks panel only. It never deletes output files or version history.

Cancelling, failures, and partial outputs

  • Clicking Cancel immediately revokes the worker's write permission so a cancelled worker cannot publish late files.
  • If the worker had already published all required outputs just before Cancel arrived, the job still finishes as Done so completed work is kept.
  • If a job is cancelled, fails, or times out after writing only some of its outputs, any files already published remain safely in version history rather than being erased.

A file's jobs

A file's details panel in the File Browser lists jobs associated with that file under JOBS, with filters for All, Active, Done, and Failed. Each row shows what the job did, the version it produced, and the app that ran it, such as "Ink edit → v3 · Image Editor".

A job's details

Details shows when a job was queued, started, and finished, the app and folder it ran from, the exact input file versions it read, and the output versions it created (including whether each output became current). Because Folio records this provenance automatically, you and your apps can always trace which exact input version produced an output.

Retry and Re-run are not available yet.