• Docs
  • Changelog
Sign in
Get started
    • Home
    • Your first deploy
    • Free instances
    • Platform features by plan
    • Use with coding agents
    • FAQ
    • Templates
      • Migrate from…
        • Heroku
        • Railway
    • Compute plans
    • SandboxesBeta
      • Service types
        • Which to use?
        • Static sites
        • Web services
        • Private services
        • Background workers
        • Cron jobs
        • Workflows
        • Multi-service architectures
      • Data storage
        • Render Postgres
        • Render Key Value (Redis®-compatible)
        • Persistent disks
    • How deploys work
    • Supported languages
    • Git providers (GitHub, etc.)
    • Build pipeline
    • Deploy hooks
    • Monorepo support
    • Troubleshooting deploys
      • Previewing changes
        • Single-service previews
        • Preview environments (multi-service)
      • Docker deploys
        • Overview
        • Deploy a registered image
        • Using secrets
      • Runtime
        • Native runtimes
        • Environment variables & secrets
        • Default environment variables
    • Intro to sandboxes
    • Limits
      • How to…
        • Create & configure sandboxes
        • Execute commands
        • Manage files
        • Manage snapshots
      • Use with…
        • Claude Managed Agents
        • Cursor Cloud Agents
        • OpenAI Agents API
      • SDK/CLI reference
        • TypeScript SDK
        • Python SDK
        • CLI commands
    • Intro to workflows
    • Tutorial
    • Limits & pricing
      • How to…
        • Define tasks
        • Define flowsNew
        • Trigger runs
        • Develop locally
      • SDK reference
        • TypeScript SDK
        • Python SDK
      • Example workflows
        • TypeScript examples
        • Python examples
    • Overview
    • Create & connect
    • Database credentials
    • Extensions
    • Version upgrades
    • Logical replication
    • Legacy instance types
      • Database recovery
        • Recovery & backups
        • High availability
      • Database performance
        • Read replicas
        • Connection pooling
        • Admin apps
        • Repacking tables
        • Troubleshooting performance
    • Regions
    • Inbound IP rules
    • Edge caching
    • WebSockets
    • TLS certificates
      • Custom domains
        • Overview
        • Cloudflare
        • Namecheap
        • Other DNS providers
      • Internal traffic
        • Private network
        • Private links
      • Outbound traffic
        • Default IP ranges
        • Dedicated IP addresses
        • Outbound bandwidth
        • Handling network changes
      • Static site config
        • Custom response headers
        • Redirects & rewrites
    • The Render Dashboard
    • SSH / Shell access
    • Projects & environments
      • Service actions
        • Scaling
        • Rollbacks
        • Maintenance mode
        • One-off jobs
      • Infrastructure as code
        • Blueprints overview
        • render.yaml reference
        • Terraform provider
    • In-dashboard metrics
    • Health checks
    • Uptime best practices
      • Logging
        • In-dashboard logs
        • Log streams (syslog/HTTPS)
      • OpenTelemetry (OTel) metrics
        • Provider setup
        • Metrics reference
      • Notifications
        • Webhooks
        • Email / Slack
    • MCP Server
      • Render CLI
        • Overview
        • Command reference
      • REST API
        • Overview
        • API reference
      • Third-party connections
        • OIDC support
        • Datadog
    • Workspaces, members, & roles
    • Login settings
    • Audit logs
      • Organizations
        • Overview
        • SAML SSO
    • DDoS protection
    • Platform maintenance
      • Compliance
        • Overview
        • HIPAA (US health data)
        • HIPAA best practices
        • Shared responsibility model
        • Pentest policy
    • Heroku vs Render
    • Vercel vs Render

One-Off Jobs

Run standalone tasks using your service's latest build.

Sometimes it's useful to spin up a short-lived process to run a specific task, such as asset compilation or a database migration. You can do this on Render by creating a one-off job.

A one-off job uses the same build artifact and configuration as one of your existing Render services (this is the job's base service). This means the job can execute any of the base service's defined scripts and access its environment variables.

A one-off job cannot access its base service's persistent disk (if it has one).

While a one-off job is running, it's billed at the per-second rate for its specified compute plan.

Running a one-off job

You create a one-off job with Render API's Create job endpoint.

New to the Render API? Get started.

This example curl command creates a one-off job that runs the command echo hi and exits:

To try out this example, substitute your service ID and API key where indicated.

  • Your service ID is available in the Render Dashboard. Navigate to your service's page and copy the ID from the URL in your browser.
    • This value starts with crn- for cron jobs and srv- for other service types.
  • Learn how to create an API key.

The Create job endpoint requires a startCommand parameter, which specifies the command Render will run to start the job.

You can optionally specify a planId to use a different compute plan from the job's base service. See supported compute plans.

Build and environment

On creation, a one-off job obtains the following values from its base service:

  • The base service's most recent successful build artifact
  • All of the base service's configured environment variables

A job uses this "snapshot" of the base service for its own execution. If these values later change in the base service, existing jobs are not affected.

Response format

If creation succeeds, the Create job endpoint returns a JSON object with the following fields:

Next, you can track the job's progress.

Tracking job progress

You can track a one-off job's progress in the Render Dashboard or via the Render API. Logs generated by one-off jobs are also included in your workspace's log stream.

Select a tab for details:

You can poll for a job's status using the Render API's Retrieve job endpoint:

This endpoint's response includes timestamps for when the job started and finished, along with its status:

You can also list a service's jobs (with optional filters) using the List jobs endpoint.

In the Render Dashboard, you can view the details of current and past one-off jobs from your base service's One-off Jobs page:

One-off job details in the Render Dashboard

This page also displays the logs for recent job runs. Render retains logs for one-off jobs according to your workspace's log retention period.

Terminating a job

  • A one-off job terminates whenever its specified startCommand exits. Render automatically deprovisions the job's instance.
  • You can terminate a one-off job manually with the Cancel running job endpoint.
  • If a one-off job hasn't exited after 30 days, Render automatically terminates it.
  • If you redeploy or suspend the base service of a running one-off job, the job is not terminated. It continues running using its existing build artifact and configuration.

Compute plan IDs

By default, a one-off job uses the same compute plan as its base service and is billed accordingly. You can use a different compute plan by providing a planId parameter to the Create job endpoint. This is most commonly useful for running basic tasks on lower-cost compute.

See below for supported values of planId according to your base service's type:

Cron jobs

These compute plan IDs apply only to cron job services.

Compute Plan IDSpecs

plan-crn-003

0.5 CPU
512 MB RAM

plan-crn-005

1 CPU
2 GB RAM

plan-crn-007

2 CPU
4 GB RAM

plan-crn-008

4 CPU
8 GB RAM

All other service types

These service type IDs apply to web services, private services, and background workers.

Compute Plan IDSpecs

plan-srv-006

0.5 CPU
512 MB RAM

plan-srv-008

1 CPU
2 GB RAM

plan-srv-010

2 CPU
4 GB RAM

plan-srv-011

4 CPU
8 GB RAM

plan-srv-013

4 CPU
16 GB RAM

plan-srv-014

8 CPU
32 GB RAM

One-Off Jobs
  • Running a one-off job
    • Build and environment
    • Response format
    • Tracking job progress
    • Terminating a job
  • Compute plan IDs
    • Cron jobs
    • All other service types
All Systems Operational
© Render Inc. All rights reserved.