What are Jobs?
Jobs are KintoBlocks that support event-based tasks. A Job KintoBlock can be used to add various tasks to deployments for e.g. a scheduled job that dispatches notification emails. Jobs can be of two types - one-time or repeatable and the type of job can be specified in the Project integrated with the KintoBlock.
Creating a Job
Select KintoBlock from the sidebar.
Click on the Create New KintoBlock card.
Select the Job KintoBlock flavor
Fill the Choose Repository form by specifying the details pertaining to the linked repo.
Click on the Continue button.
Next, specify the details on
Click on the Create Job button to successfully create the KintoBlock.
Configure a Job
Jobs created in KintoHub can be configured as
Run Once or
The Run Once option can be configured in two ways:
Pre-Deployment: This Job will be run before the project deployment is started.
Post-Deployment: This Job will be run after the project deployed is completed.
Pre-Deployment and Post-deployment jobs can be used in cases where a specific set of commands needs to be executed. For e.g. Running a database migration or sending a slack message.
The Repeat Scheduling option is used in cases where the job is required to run often or repeatedly. This job option can be used in creating a daily back-up of databases or in test execution of an application on a daily basis.
To configure the Job KintoBlock for Project, follow the steps mentioned below:
Open the Job Project.
Scroll down to KintoBlocks section displayed at the bottom of the Project Manage page.
Click on Configure KintoBlock of the Job KintoBlock that needs to be modified.
If a one-time job is required, click on Run Once and select Pre-Deployment or Post-Deployment.
In the case of a recurring task, click on Repeat Schedule and enter your own CRON PATTERN or choose any Quick Patterns.
Click on Done Configuring button to apply the changes.
Once the above steps are successfully performed, the Job is all set for execution.