mirror of
https://gitlab.cs.uni-saarland.de/hpc/cc-condor-sync.git
synced 2024-11-10 02:47:25 +01:00
Ignore tagged jobs
This commit is contained in:
parent
631ed6c8b6
commit
57593358a2
@ -379,6 +379,12 @@ class SlurmSync:
|
|||||||
# iterate over running jobs and add them to cc if they are still missing there
|
# iterate over running jobs and add them to cc if they are still missing there
|
||||||
if direction in ['both', 'start']:
|
if direction in ['both', 'start']:
|
||||||
for job in self.slurmJobData['jobs']:
|
for job in self.slurmJobData['jobs']:
|
||||||
|
# Skip this job if the user does not want the metadata of this job to be submitted to ClusterCockpit
|
||||||
|
# The text field admin_comment is used for this. We assume that this field contains a comma seperated
|
||||||
|
# list of flags.
|
||||||
|
if "disable_cc_submission" in job['admin_comment'].split(','):
|
||||||
|
print("INFO: Job %s: disable_cc_sumbission is set. Continue with next job" % job['job_id'])
|
||||||
|
continue
|
||||||
# consider only running jobs
|
# consider only running jobs
|
||||||
if job['job_state'] == "RUNNING":
|
if job['job_state'] == "RUNNING":
|
||||||
if jobid:
|
if jobid:
|
||||||
|
Loading…
Reference in New Issue
Block a user