CronJob

/* Buttons */ /* Paragraph */ /* HERO */ /* BOX CONTAINER */ /* BOX */ /* NO STYLE BOX (3rd box fix) */ /* TABLET */ /* MOBILE */ /* optional: hide empty box on mobile */

1. Cron Jobs Overview

A cron job is a scheduled task that runs automatically at a specified time or at recurring intervals. It uses a cron expression to define the execution schedule, helping automate routine tasks and reduce manual effort.

In Kubernetes, a CronJob is a resource that creates and runs Jobs according to a defined schedule. Common use cases include database backups, log cleanup, data synchronization, and routine maintenance activities.

BuildPiper allows you to configure cron jobs for a service, enabling scheduled tasks to run automatically without manual intervention.

2. Key Capabilities

Capability Description
Schedule Configure task execution times and intervals using a cron expression.
Automate Run recurring tasks automatically at the configured time or interval.
Suspend Temporarily pause future scheduled runs.
Execute Run tasks according to the defined schedule, with immediate execution available where supported.
Manage Workloads Schedule operational tasks, including supported build and deployment activities, depending on the configuration and integration.

3. Cron Expression Example

The cron expression 0 2 * * * schedules a task to run every day at 2:00 AM, subject to the configured time zone.

4. Configure a Cron Job

To deploy a cron job, the service must have its CD details configured. If the details are missing, the DEPLOY DETAILS tab displays CD Details Not Configured and prompts you to select a method for configuring them.

1

Log in to BuildPiper.

2

Switch to User Portal.

3

Click Application and select the application.

4

Open Service Overview.

5

Select the service.

6

Select the ENV DEPLOY DETAILS tab, then the DEPLOY DETAILS tab.

7

Select Cronjob instead of MicroService.

8

Choose one of the two options, then click CONFIGURE.
Cron Jobs: figure 1
Figure 1: CD Details Not Configured – Cronjob
Option Description
BuildPiper-UI Configure and manage the Cronjob CD details directly through BuildPiper.
Custom Manifest file/GitOps Configure the CD by uploading your custom manifest file.

1. Cron Jobs Overview

A cron job is a scheduled task that runs automatically at a specified time or at recurring intervals. It uses a cron expression to define the execution schedule, helping automate routine tasks and reduce manual effort.
In Kubernetes, a CronJob is a resource that creates and runs Jobs according to a defined schedule. Common use cases include database backups, log cleanup, data synchronization, and routine maintenance activities. BuildPiper allows you to configure cron jobs for a service, enabling scheduled tasks to run automatically without manual intervention.

2. Key Capabilities

Capability Description
Schedule Configure task execution times and intervals using a cron expression.
Automate Run recurring tasks automatically at the configured time or interval.
Suspend Temporarily pause future scheduled runs.
Execute Run tasks according to the defined schedule, with immediate execution available where supported.
Manage Workloads Schedule operational tasks, including supported build and deployment activities, depending on the configuration and integration.

3. Cron Expression Example

The cron expression 0 2 * * * schedules a task to run every day at 2:00 AM, subject to the configured time zone.

4. Configure a Cron Job

To deploy a cron job, the service must have its CD details configured. If the details are missing, the DEPLOY DETAILS tab displays CD Details Not Configured and prompts you to select a method for configuring them.
1
Log in to BuildPiper.
2
Switch to User Portal.
3
Click Application and select the application.
4
Open Service Overview.
5
Select the service.
6
Select the ENV DEPLOY DETAILS tab, then the DEPLOY DETAILS tab.
7
Select Cronjob instead of MicroService.
8
Choose one of the two options, then click CONFIGURE.
Cron Jobs: figure 1
Figure 1: CD Details Not Configured - Cronjob
Option Description
BuildPiper-UI Configure and manage the Cronjob CD details directly through BuildPiper.
Custom Manifest file/GitOps Configure the CD by uploading your custom manifest file.