Workflow Scheduling
Schedule workflows to run automatically on a recurring basis using cron expressions or preset intervals.
Setting Up a Schedule
- Open your workflow in the dashboard editor
- Click Schedule in the toolbar
- Choose a preset interval or enter a custom cron expression
- Optionally set input parameter values for scheduled runs
- Save the schedule
Preset Intervals
| Interval | Cron Expression |
|---|---|
| Every hour | 0 * * * * |
| Every 6 hours | 0 */6 * * * |
| Daily at midnight | 0 0 * * * |
| Weekly on Monday | 0 0 * * 1 |
| Monthly on the 1st | 0 0 1 * * |
Custom Cron Expressions
Use standard 5-field cron syntax:
┌───────────── minute (0-59)
│ ┌───────────── hour (0-23)
│ │ ┌───────────── day of month (1-31)
│ │ │ ┌───────────── month (1-12)
│ │ │ │ ┌───────────── day of week (0-7, 0 and 7 = Sunday)
│ │ │ │ │
* * * * *Examples
0 9 * * 1-5 # Every weekday at 9:00 AM
*/15 * * * * # Every 15 minutes
0 0 */2 * * # Every 2 days at midnight
30 14 1,15 * * # 1st and 15th of each month at 2:30 PMVia the API
POST https://api.scrayle.com/api/v1/workflows/{workflowId}/schedule
Headers:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Body:
{
"cron": "0 */6 * * *",
"input": {
"search_query": "web scraping"
}
}Managing Schedules
- Pause - Temporarily stop scheduled runs without deleting the schedule
- Resume - Re-enable a paused schedule
- Delete - Remove the schedule entirely
- View history - See past scheduled runs and their results
⚠️Credits
Each scheduled run consumes 5 credits. Make sure your account has sufficient balance - failed runs due to insufficient credits will not retry automatically.