Laravel Rust's durable workflows: a three-day onboarding flow on the queue you already run
Published December 2, 2026 · by Majd Ghithan, written with the help of AI
Every Laravel team I know has built the same fragile thing at least once: "send a welcome email now, check in three days, send tips if the user hasn't done anything." In PHP we usually stitch it together with a delayed job, a scheduler command that scans a table, and a status column that someone forgets to update. It works until a deploy or a failed job leaves a user stuck halfway.
Laravel Rust, in beta since December 1, ships queues that will feel familiar, plus something Laravel itself calls new: "Durable workflows are brand new in Laravel". This post covers both, with the workflow being the part I care about.
Jobs first: the part you already know
According to the queue docs, "a job is a struct that derives Queueable, paired with a #[job] impl containing its handle method ... Laravel discovers them automatically, so there is nothing to register."
// src/jobs/process_podcast.rs
use laravel::queue::{Queueable, job};
use crate::models::Podcast;
#[derive(Queueable)]
pub struct ProcessPodcast {
pub podcast_id: i64,
}
#[job]
impl ProcessPodcast {
async fn handle(self) -> laravel::Result<()> {
let podcast = Podcast::find_or_fail(self.podcast_id).await?;
// Process the uploaded podcast...
Ok(())
}
}
The drivers map closely to what you use in PHP: database (the default QUEUE_CONNECTION), redis (needs the redis Cargo feature), sqs (needs sqs), cloud for Laravel Cloud managed queues (also needs sqs), plus sync and discard. You run a worker with laravel queue:work.
Two details I was glad to see. Models in jobs behave like SerializesModels: "When dispatched, Laravel serializes only each model's primary key. Before handle runs, the worker reloads the model from the database". And retries are an attribute, for example #[job(tries = 3)]. Laravel also lists chains, batches and job middleware.
Durable workflows: what "durable" means here
The workflow docs describe the promise in one sentence: "Laravel executes each step once, persists its result, and resumes execution across sleeps, external webhooks, deploys, and worker restarts".
The mechanism is simple once you see it. Each time the workflow advances, it "executes as a queued job: the worker invokes handle from the top, immediately replays any steps whose results are already stored". So handle runs from the top again and again, but completed steps return their saved result instead of running twice.
Here is the full example from the docs:
// src/workflows/onboard_user.rs
use laravel::queue::Queueable;
use laravel::time::ToSpan;
use laravel::workflow::{Run, workflow};
#[derive(Queueable)]
pub struct OnboardUser {
pub user_id: i64,
}
#[workflow]
impl OnboardUser {
async fn handle(self, run: &Run) -> laravel::Result<()> {
run.step("send welcome email", self.send_welcome_email()).await?;
run.sleep(3.days()).await?;
if run.step("count projects", self.count_projects()).await? == 0 {
run.step("send tips", self.send_tips()).await?;
}
Ok(())
}
}
And starting it from a handler:
use laravel::prelude::*;
use crate::workflows::OnboardUser;
pub async fn store(user: User) -> laravel::Result<Redirect> {
OnboardUser { user_id: user.id }.start().await?;
Ok(Redirect::to("/dashboard"))
}
.start() returns a RunId. Read the workflow top to bottom and it says exactly what the business wants. No status column, no scanner command. The three-day wait is a line of code, and per the docs, "a run waiting for two weeks consumes no resources in the meantime."
No new infrastructure, but not zero setup
The headline claim is "Workflows run on your existing queue workers and connections, so there is no extra infrastructure to deploy." No separate orchestrator service to run.
That does not mean it works in a fresh app with no changes. Two things to do:
The rules that keep replay honest
Because handle is replayed from the top, the docs set a few rules:
- "Perform all I/O inside steps." An email sent outside a step will be sent again on every replay.
- Branch only on inputs and recorded results. In the example, the
ifuses the stored result of "count projects", which is safe. Branching on the current time or a fresh query would not be. - Step names must be unique within a workflow.
- Give the workflow a stable
namebefore production, because renaming it "orphans active runs". If you have runs sleeping for two weeks, a refactor that renames the workflow strands all of them.
That last rule is the one I would put in a team checklist. It is the kind of thing that passes code review and fails quietly in production.
Where this fits for a team
I have built dashboards serving 100K+ users, and the long-running processes were always the hardest parts to reason about: onboarding sequences, trial expiry, follow-ups. The code was rarely complicated. The state machine spread across tables, cron and jobs was.
A workflow in one file, readable top to bottom, removes most of that spread. It also changes what a code review checks: instead of tracing three files, you check the step rules above.
Remember the status, though. Laravel Rust is beta, and "Releases before 1.0 may include breaking changes to APIs and configuration." For a workflow that can sleep for weeks, a breaking change between versions matters more than it does for a simple endpoint, because old runs have to resume on new code.
My take
Queues in Laravel Rust are what I expected: familiar, with sensible defaults. Workflows are the genuinely new idea, and the design choice I respect most is running them on existing queue workers instead of asking for a new service. I would try it now on a non-critical sequence, like an onboarding email flow, and keep anything involving money or long-lived runs for after 1.0. And I would be very happy to see the same idea come to Laravel PHP.
