Quick Start
This guide will help you create and manage your first cron job with A1Cron. By the end, you’ll have a scheduled task running automatically.Prerequisites
Before you begin, make sure you have:- An A1Base account
- Your API key and secret from the dashboard
- A publicly accessible endpoint URL to call
Step 1: Create Your First Cron Job
Let’s create a simple daily cron job that calls your endpoint every morning at 9 AM.Response
Save the returned
id
- you’ll need it to manage this cron job later.Step 2: Verify Your Cron Job
Let’s check that your cron job was created successfully:Step 3: Test with Manual Trigger
Before waiting for the scheduled time, test your cron job manually:Step 4: Monitor Execution Logs
Check the execution history of your cron job:Common Patterns
Hourly Health Check
Weekly Report on Business Days
Limited Duration Campaign
Troubleshooting
My cron job isn't running
My cron job isn't running
- Check that
is_active
is set totrue
- Verify the timezone and scheduled time
- Ensure your endpoint URL is publicly accessible
- Check the execution logs for error messages
Getting authentication errors
Getting authentication errors
- Verify your API key and secret are correct
- Ensure you’re including both headers in your requests
- Check that your account ID in the URL is correct
Endpoint timeouts
Endpoint timeouts
- Increase the
timeout_seconds
in your retry configuration - Ensure your endpoint responds within the timeout period
- Consider optimizing your endpoint for faster response