Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not isinstance(skip_jobs,list) and (skip_jobs is not None):
- return {"code": 1, "JobStatus":"Error. Incorrect 'SkipJobs' value"}
- elif not isinstance(run_only,list) and (run_only is not None):
- return {"code": 1, "JobStatus":"Error. Incorrect 'RunOnly' value"}
- if skip_jobs and run_only and (col.Counter(skip_jobs) == col.Counter(run_only)):
- return {"code": 1, "JobStatus":"Error. CurrentJob and RunOnly lists can't have the same values"}
- if (skip_jobs and (current_job in skip_jobs)) or
- (run_only and (current_job not in run_only)):
- return {"code": 0, "JobStatus":"skip"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement