Documentation
Cron Jobs
Schedule periodic HTTP requests to your services.
Deployra Cron Jobs allow you to set up automated HTTP requests that are sent to your services at scheduled intervals. This is perfect for triggering periodic tasks like:
- Running data processing or cleanup scripts
- Sending scheduled notifications or reports
- Refreshing cached data
- Triggering database maintenance
- Executing any recurring task that can be initiated via an HTTP endpoint

How Cron Jobs Work
Set up a schedule using cron syntax (e.g., 0 * * * *
for hourly) or select from preset intervals.
Configure the HTTP method, URL, headers, and payload that will be sent to your service.
Deployra automatically sends the configured request to your service at the scheduled times.
Creating a Cron Job
Navigate to your service
Go to your service's dashboard in the Deployra platform
Select "Cron Jobs" from the sidebar
Find the Cron Jobs section in your service's navigation menu
Click "Create Cron Job"
Open the form to configure a new cron job
Configure your cron job
Set up the schedule, HTTP method, URL path, and other options
Save and activate
Your cron job will start running according to the schedule you set
Cron Schedule Syntax
*/5 * * * *
Every 5 minutes0 * * * *
Every hour0 0 * * *
Every day at midnight0 9 * * 1-5
Weekdays at 9:00 AM0 0 1 * *
First day of month at midnightBest Practices
Use dedicated endpoints
Create specific routes in your application for cron job operations. This makes monitoring and debugging easier.
Add authentication
Use custom headers for authentication to ensure only your cron jobs can trigger these endpoints.
Monitor job execution
Check the cron job logs regularly to ensure jobs are running successfully.
Implement idempotency
Design your endpoints to handle repeated calls gracefully, in case a job runs multiple times.