Migration Guide

Migrate from Trigger.dev Cron

Remove the SDK dependency. Get AI diagnostics and escalation policies.

Step by step

1

Find your scheduled tasks

In your codebase, search for schedules.task() or schedules.cron() calls in your Trigger.dev tasks.

# Find scheduled tasks
grep -r "schedules" src/ --include="*.ts"
2

Extract the task logic

For each scheduled task, identify what HTTP endpoint it's calling or what external action it's performing.

3

Expose logic as HTTP endpoints

If the task calls your own code, create an HTTP route that performs the same action.

// app/api/cron/process/route.ts
export async function POST(req: Request) {
  // same logic as your Trigger.dev task
  await processQueue();
  return Response.json({ ok: true });
}
4

Create JustRun jobs

Create a JustRun job for each task: same cron expression, HTTP endpoint URL. Add the CLI: npx @justrun/cli create.

5

Remove Trigger.dev schedule definitions

Remove the schedules.task() definitions from your codebase. Uninstall @trigger.dev/sdk if no longer needed.

Common questions

What if my Trigger.dev task uses SDK-specific features like ctx.wait()?

Those features (durable waits, subtasks) don't have JustRun equivalents. Use job chains for simple sequential flows, or keep Trigger.dev for tasks that genuinely need durable orchestration.

Does removing the SDK affect my build?

Only if other tasks still use @trigger.dev/sdk. Remove the package only once all scheduled tasks are migrated.

Ready to migrate?

Free to start. Import in under 2 minutes.

Start Free