LSSTApplications  11.0-13-gbb96280,12.1.rc1,12.1.rc1+1,12.1.rc1+2,12.1.rc1+5,12.1.rc1+8,12.1.rc1-1-g06d7636+1,12.1.rc1-1-g253890b+5,12.1.rc1-1-g3d31b68+7,12.1.rc1-1-g3db6b75+1,12.1.rc1-1-g5c1385a+3,12.1.rc1-1-g83b2247,12.1.rc1-1-g90cb4cf+6,12.1.rc1-1-g91da24b+3,12.1.rc1-2-g3521f8a,12.1.rc1-2-g39433dd+4,12.1.rc1-2-g486411b+2,12.1.rc1-2-g4c2be76,12.1.rc1-2-gc9c0491,12.1.rc1-2-gda2cd4f+6,12.1.rc1-3-g3391c73+2,12.1.rc1-3-g8c1bd6c+1,12.1.rc1-3-gcf4b6cb+2,12.1.rc1-4-g057223e+1,12.1.rc1-4-g19ed13b+2,12.1.rc1-4-g30492a7
LSSTDataManagementBasePackage
WorkflowConfig.py
Go to the documentation of this file.
1 import sys
2 import lsst.pex.config as pexConfig
3 import PipelineConfig as pipe
4 import CondorWorkflowConfig as condor
5 import VanillaCondorWorkflowConfig as van
6 import GenericWorkflowConfig as gen
7 import FakeTypeMap as fake
8 import DatabaseConfig as data
9 import PlatformConfig as plat
10 import MonitorConfig as mon
11 import TaskConfig as task
12 
13 typemap = {"generic":gen.GenericWorkflowConfig,"vanilla":van.VanillaCondorWorkflowConfig, "condor":condor.CondorWorkflowConfig}
14 
15 ##
16 # definition of a workflow
17 class WorkflowConfig(pexConfig.Config):
18  ## name of this workflow
19  shortName = pexConfig.Field("name of this workflow",str)
20  ## platform configuration file
21  platform = pexConfig.ConfigField("platform configuration file",plat.PlatformConfig)
22  ## topic used for shutdown events
23  shutdownTopic = pexConfig.Field("topic used for shutdown events",str)
24 
25  ## plugin type
26  configurationType = pexConfig.Field("plugin type",str)
27  ## plugin class name
28  configurationClass = pexConfig.Field("orca plugin class",str)
29  ## configuration
30  configuration = pexConfig.ConfigChoiceField("configuration",typemap)
31 
32  # this usually isn't used, but is here because the design calls for this
33  # possibility.
34  ## database name
35  database = pexConfig.ConfigChoiceField("database",fake.FakeTypeMap(data.DatabaseConfig))
36 
37  #pipeline = pexConfig.ConfigChoiceField("pipeline",fake.FakeTypeMap(pipe.PipelineConfig))
38  ## task
39  task = pexConfig.ConfigChoiceField("task",fake.FakeTypeMap(task.TaskConfig))
40  ## monitor configuration
41  monitor = pexConfig.ConfigField("monitor configuration", mon.MonitorConfig)