Schedule a Cron
Next, let’s create a cron, associate it with the Job Pool created in Step 3, and schedule it to run every hour. This cron will trigger the Job Function periodically to fetch the latest news from the NewsAPI and update the application.
By running once every hour, the cron ensures that the application remains up to date with fresh news content. Each time it runs, it automatically invokes the Job Function, which makes an API call to the NewsAPI to retrieve the latest headlines.
To create a cron from the Catalyst console, please make sure to follow the below-listed steps:
- Navigate to Cron under the Job Executor section and click Create Cron.

- Enter a name and a description for the cron. You can enter any name. Select the Format Type as Standard Input. Select the Schedule Type as Recursive. Select the Repeat Type as Every.You can set the Schedule Time as required and also choose to enable the Cron termination details.
After entering all the details, click Next.

- Provide a name for the Job, select the Job Pool as News and the target function as newsapp. Click Create.

The cron has been created successfully. You can now submit the job to start its execution by clicking on the Submit Job button.

You can click on Execution History button to view the cron execution details.

You can navigate to the Jobs section and view the execution status of the jobs scheduled in the cron for every hour.

The news application is now functional and the news will be fetched from the NewsAPI and updated in the application for every one hour.
Last Updated 2025-06-20 19:01:24 +0530 +0530