What you get

Long-running work moves off the request, without you writing a queue or a worker.

  • A durable queue

    A scheduled call is stored as a Background Job record, so work survives a restart. A worker picks jobs up and runs them.

  • Any command, in the background

    Commands can be marked to run in the background. The worker replays exactly the call that was scheduled, through the same code path as a direct call.

  • Visible in the portal

    Running and finished jobs show up in the portal, with a link to the object a job works on.

  • Cancel and clean up

    Jobs can be cancelled, and a clean-up command removes finished jobs while keeping failed and cancelled ones for inspection.

How it works

Background Processing is the foundation for everything in a Fractal app that should not happen inside a web request. The worker runs on a regular tick, and other modules hook into it: Scheduled Tasks enqueues due schedules on the same queue, and Metrics runs its daily roll-up from it.

Workflows you model in the studio can run their steps in the background too.