HTCDag#
- class lsst.ctrl.bps.htcondor.HTCDag(data=None, name='')#
Bases:
DiGraphHTCondor DAG.
Parameters#
- datanetworkx.DiGraph.data
Initial graph.
- name
str Name for DAG.
Methods Summary
add_attribs([attribs])Add attributes to the DAG.
add_final_job(job)Add an HTCJob for the FINAL job in HTCDag.
add_job(job[, parent_names, child_names])Add an HTCJob to the HTCDag.
add_job_relationships(parents, children)Add DAG edge between parents and children jobs.
add_service_job(job)Add an HTCJob for the SERVICE job in HTCDag.
del_job(job_name)Delete the job from the DAG.
dump(fh)Dump DAG info to output stream.
write(submit_path[, job_subdir, dag_subdir, ...])Write DAG to a file.
write_dot(filename)Write a dot version of the DAG.
Methods Documentation
- add_final_job(job)#
Add an HTCJob for the FINAL job in HTCDag.
Parameters#
- job
HTCJob HTCJob to add to the HTCDag as a FINAL job.
- job
- add_job(job, parent_names=None, child_names=None)#
Add an HTCJob to the HTCDag.
Parameters#
- job
HTCJob HTCJob to add to the HTCDag.
- parent_names
Iterable[str], optional Names of parent jobs.
- child_names
Iterable[str], optional Names of child jobs.
- job
- add_job_relationships(parents, children)#
Add DAG edge between parents and children jobs.
Parameters#
- parents
list[str] Contains parent job name(s).
- children
list[str] Contains children job name(s).
- parents
- add_service_job(job)#
Add an HTCJob for the SERVICE job in HTCDag.
Parameters#
- job
HTCJob HTCJob to add to the HTCDag as a FINAL job.
- job
- del_job(job_name)#
Delete the job from the DAG.
Parameters#
- job_name
str Name of job in DAG to delete.
- job_name
- write(submit_path, job_subdir='', dag_subdir='', dag_rel_path='')#
Write DAG to a file.
Parameters#
- submit_path
str Prefix path for all outputs.
- job_subdir
str, optional Template for job subdir (submit_path + job_subdir).
- dag_subdir
str, optional DAG subdir (submit_path + dag_subdir).
- dag_rel_path
str, optional Prefix to job_subdir for jobs inside subdag.
- submit_path