Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions core/service/job/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,8 @@ const createJob = async (input) => {
// await notification and system log generation
await RegisterOperation(Constants.CREATE, TopicsConstants.job.crud, { job, user })

awat checkTaskDependencies(task)

if (task.type === TaskConstants.TYPE_DUMMY) {
if (job.lifecycle !== LifecycleConstants.ONHOLD) {
await App.jobDispatcher.finishDummyJob(job, input)
Expand All @@ -678,6 +680,16 @@ const createJob = async (input) => {
return job
}

const checkTaskDependencies = (task) => {

if (task.dependencies_check_enabled === true) {

const deps = task.dependencies

}

}

/**
* Invoke Job Factory (scheduled, delayed execution)
*
Expand Down