sflis / plms

Python Local Micro Scheduler
MIT License
1 stars 0 forks source link

dependent jobs #13

Open mzoll opened 9 years ago

mzoll commented 9 years ago

It would be nice to have jobs execute in dependency of the finished execution of a previous jobs of given job ID: thus the submission command might take another argument like: $plms submit 'sleep 1000'-> PLMS echo: "Succesfully submited job: 0" $plms submit 'sleep 300 && echo "Five more minutes" ' --dependency 0

thus only on the successful execution of job 0 the next job 1 is executed

This might give room for dependent execution and more efficency to the sheduler for multistaged batch procesing

sflis commented 9 years ago

This is interesting and maybe not to hard to implement actually! I'll look into it.

sflis commented 9 years ago

I'll need to add two new job statuses and one or two new fields in the job description. If the first job in the dependence sequence fails, resubmitting the job will should result in a resubmit of the whole dependence chain.