Dependent Jobs ¶
Now in dataopsly we can use job dependency to trigger a particular job. This works in a way that, while creating a secondary job, we can connect the secondary job to the respective first or previous or desired job. And once the latter job gets successfully completed, this dependent job will get triggered automatically. And this job cannot be triggered normally
This guide explains how to create a job and set its dependency on another job in the scheduler.
Steps to Create a Dependent Job¶
- Create a Job
- Navigate to the Jobs section.
-
Click on Create New Job and configure the required settings.
-
Create Another Job
-
Similarly, create another job following the same process.
-
Navigate to the Scheduler Section
-
Scroll down to find the Scheduler section in the job settings.
-
Set Job Dependency
- Locate the Depends On option.
-
Click on it and select the job that the current job should wait for.
-
Confirm and Save
- Ensure the dependency is correctly set.
- Click Save to finalize the configuration.
Example Scenario¶
If Job A needs to run before Job B, set Job B to depend on Job A.
This ensures that Job B only starts after Job A successfully completes.