diff --git a/core/service/job/index.js b/core/service/job/index.js index c12e1d92..32ae7836 100644 --- a/core/service/job/index.js +++ b/core/service/job/index.js @@ -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) @@ -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) *