Cron Jobs
Vessl allows you to define and schedule Cron Jobs to run commands on a recurring basis within your project environments.
Creating a Job
Section titled “Creating a Job”You can create a job directly from the Vessl dashboard:
- Navigate to your project.
- Go to the Jobs tab.
- Click New Job.
- Enter a Name for your job (e.g.,
daily-report,db-cleanup). - Provide a valid Cron Schedule (e.g.,
0 0 * * *for midnight every day). - Enter the Command to execute.
- Click Create.
Execution Context
Section titled “Execution Context”When a job triggers, Vessl provisions a temporary container environment with access to:
- Your project’s environment variables.
- Linked databases via standard connection strings (e.g.,
DATABASE_URL). - Shared persistent storage volumes (if attached).
The container executes the defined command, logs the output, and terminates immediately once finished.
Monitoring & Logs
Section titled “Monitoring & Logs”In the Jobs tab, you can view:
- The Status of the job (Active, Paused, Running, Failed).
- Last Run At timestamp.
- Last Output for debugging issues from the most recent execution.
Vessl will automatically alert you via your configured Notification channels (Discord, Slack, Email) if a scheduled job fails to execute properly.