Cron
Introduction
Cron is a Job Scheduling component that allows you to schedule the creation and submission of a job to a job pool at a particular time. Cron can perform this function recursively based on a custom schedule. When a cron is configured, Catalyst initiates the cron daemon to run in the background always. The cron daemon is a program that is responsible for submitting a job to the Job Pool when its determined schedule approaches.

Cron can submit jobs to a Job Pool once or recursively by defining the specific date and time of the execution or the interval period for recursion. There are two types of cron:
- Pre-defined Cron: This type of cron can be created in the console, and they are configured with the exact time or time periods on when they should be submitting jobs to Job Pools. These crons will be migrated to the production environment when you deploy your project to production. These type of crons are generally used for the functionality of web applications.

- Dynamic Cron: This type of cron is ideally created using the Catalyst SDK, available in Java, Node.js, and Python. This cron type will be created dynamically through code during runtime, and they will submit jobs to the Job Pool during runtime. These crons cannot be migrated to the production environment. Dynamic crons are generally employed based on end-user functionality.

Crons can submit a jobs the Job Pool to execute webhooks(any third-party URL), Circuits, Job Functions, and AppSail services. A cron strictly acts as a scheduler that submits jobs to the Job Pool. It is the Job Pool that queues and executes the scheduled jobs to invoke the configured target type.
You can use the console Builder to configure Pre-Defined and Dynamic crons. Additionally, to define the schedule of a cron, you can implement regex-like expressions called Cron Expressions. You can use Cron Expressions to configure the schedule of a cron while creating it using the Builder or through code using the Catalyst SDK.
-
Learn more about Cron Expressions and its syntax from this help section.
-
While Catalyst offers you the option to create Dynamic Crons using the Console’s Builder, it is strongly advised you use it solely for testing Dynamic Cron’s configurations when the project is in the production environment.
-
We strongly urge you to use the Builder to create Pre-defined Crons and use Catalyst SDK to create Dynamic Crons.
Catalyst offers robust SDKs to use crons and perform cron operations easily through your code in the following runtimes:
Catalyst also offers you REST APIs to perform cron operations.
Last Updated 2025-06-03 18:19:55 +0530 +0530
Yes
No
Send your feedback to us