Coverage for python/lsst/ctrl/execute/allocationConfig.py: 100%
11 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-10-10 01:46 -0700
« prev ^ index » next coverage.py v7.10.6, created at 2025-10-10 01:46 -0700
1#
2# LSST Data Management System
3# Copyright 2008-2016 LSST Corporation.
4#
5# This product includes software developed by the
6# LSST Project (http://www.lsst.org/).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the LSST License Statement and
19# the GNU General Public License along with this program. If not,
20# see <http://www.lsstcorp.org/LegalNotices/>.
21#
23import lsst.pex.config as pexConfig
26class AllocatedPlatformConfig(pexConfig.Config):
27 """Platform specific information"""
29 queue = pexConfig.Field(doc="the scheduler queue to submit to", dtype=str, default="debug")
30 email = pexConfig.Field(
31 doc="line to add to the scheduler file to get email notification (if supported)",
32 dtype=str,
33 default=None,
34 )
36 scratchDirectory = pexConfig.Field(
37 doc="directory on the remote system where the scheduler file is sent",
38 dtype=str,
39 default=None,
40 )
41 loginHostName = pexConfig.Field(doc="the host to login and copy files to", dtype=str, default=None)
42 utilityPath = pexConfig.Field(
43 doc="the directory containing the scheduler commands", dtype=str, default=None
44 )
45 totalCoresPerNode = pexConfig.Field(doc="the TOTAL number of cores on each node", dtype=int, default=1)
46 glideinShutdown = pexConfig.Field(
47 doc="number of seconds of inactivity before glideins are cancelled",
48 dtype=int,
49 default=3600,
50 )
53class AllocationConfig(pexConfig.Config):
54 """A pex_config file describing the platform specific information required
55 to fill out a scheduler file which will be used to submit a scheduler
56 request.
57 """
59 # this is done on two levels instead of one for future expansion of this
60 # config class, which may require local attributes to be specified.
61 platform = pexConfig.ConfigField("platform allocation information", AllocatedPlatformConfig)