-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path__init__.py
More file actions
107 lines (95 loc) · 5.32 KB
/
__init__.py
File metadata and controls
107 lines (95 loc) · 5.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# -----------------------------------------------------------
# Copyright (C) 2008 StatPro Italia s.r.l.
#
# StatPro Italia
# Via G. B. Vico 4
# I-20123 Milano
# ITALY
#
# phone: +39 02 96875 1
# fax: +39 02 96875 605
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the license for more details.
# -----------------------------------------------------------
#
# Author: Enrico Sirola <enrico.sirola@statpro.com>
"""
A python package for DRM job submission and control.
This package is an implementation of the DRMAA 1.0 Python language
binding specification (http://www.ogf.org/documents/GFD.143.pdf).
The source is hosted on GitHub: https://github.com/pygridtools/drmaa-python
Releases are available from PyPi: https://pypi.python.org/pypi/drmaa
Documentation is hosted on ReadTheDocs: http://drmaa-python.readthedocs.org/
:author: Enrico Sirola (enrico.sirola@statpro.com)
:author: Dan Blanchard (dan.blanchard@gmail.com)
"""
from __future__ import absolute_import, print_function, unicode_literals
import logging
from .const import (ATTR_BUFFER, BLOCK_EMAIL, CONTACT_BUFFER,
control_action_to_string, DEADLINE_TIME, DRM_SYSTEM_BUFFER,
DRMAA_IMPLEMENTATION_BUFFER, DURATION_HLIMIT,
DURATION_SLIMIT, ERROR_PATH, ERROR_STRING_BUFFER,
INPUT_PATH, JOB_CATEGORY, JOB_IDS_SESSION_ALL,
JOB_IDS_SESSION_ANY, JOB_NAME, job_state, JobControlAction,
JOBNAME_BUFFER, JobState, JobSubmissionState, JOIN_FILES,
JS_STATE, NATIVE_SPECIFICATION, NO_MORE_ELEMENTS,
OUTPUT_PATH, PLACEHOLDER_HD, PLACEHOLDER_INCR,
PLACEHOLDER_WD, REMOTE_COMMAND, SIGNAL_BUFFER, START_TIME,
status_to_string, string_to_control_action,
submission_state, SUBMISSION_STATE_ACTIVE,
SUBMISSION_STATE_HOLD, TIMEOUT_NO_WAIT,
TIMEOUT_WAIT_FOREVER, TRANSFER_FILES, V_ARGV, V_EMAIL,
V_ENV, WCT_HLIMIT, WCT_SLIMIT, WD)
from .errors import (AlreadyActiveSessionException, AuthorizationException,
ConflictingAttributeValuesException,
DefaultContactStringException, DeniedByDrmException,
DrmCommunicationException, DrmsExitException,
DrmsInitException, ExitTimeoutException,
HoldInconsistentStateException, IllegalStateException,
InternalException, InvalidAttributeFormatException,
InvalidContactStringException, InvalidJobException,
InvalidJobTemplateException, NoActiveSessionException,
NoDefaultContactStringSelectedException,
ReleaseInconsistentStateException,
ResumeInconsistentStateException,
SuspendInconsistentStateException, TryLaterException,
UnsupportedAttributeException, InvalidArgumentException,
InvalidAttributeValueException, OutOfMemoryException)
from .session import JobInfo, JobTemplate, Session
from .version import __version__, VERSION
__docformat__ = "restructuredtext en"
__all__ = ['JobInfo', 'JobTemplate', 'Session', 'AlreadyActiveSessionException',
'AuthorizationException', 'ConflictingAttributeValuesException',
'DefaultContactStringException', 'DeniedByDrmException',
'DrmCommunicationException', 'DrmsExitException',
'DrmsInitException', 'ExitTimeoutException',
'HoldInconsistentStateException', 'IllegalStateException',
'InternalException', 'InvalidAttributeFormatException',
'InvalidContactStringException', 'InvalidJobException',
'InvalidJobTemplateException', 'NoActiveSessionException',
'NoDefaultContactStringSelectedException',
'ReleaseInconsistentStateException',
'ResumeInconsistentStateException',
'SuspendInconsistentStateException', 'TryLaterException',
'UnsupportedAttributeException', 'InvalidArgumentException',
'InvalidAttributeValueException', 'OutOfMemoryException',
'ATTR_BUFFER', 'BLOCK_EMAIL', 'CONTACT_BUFFER',
'control_action_to_string', 'DEADLINE_TIME', 'DRM_SYSTEM_BUFFER',
'DRMAA_IMPLEMENTATION_BUFFER', 'DURATION_HLIMIT', 'DURATION_SLIMIT',
'ERROR_PATH', 'ERROR_STRING_BUFFER', 'INPUT_PATH', 'JOB_CATEGORY',
'JOB_IDS_SESSION_ALL', 'JOB_IDS_SESSION_ANY', 'JOB_NAME',
'job_state', 'JobControlAction', 'JOBNAME_BUFFER', 'JobState',
'JobSubmissionState', 'JOIN_FILES', 'JS_STATE',
'NATIVE_SPECIFICATION', 'NO_MORE_ELEMENTS', 'OUTPUT_PATH',
'PLACEHOLDER_HD', 'PLACEHOLDER_INCR', 'PLACEHOLDER_WD',
'REMOTE_COMMAND', 'SIGNAL_BUFFER', 'START_TIME', 'status_to_string',
'string_to_control_action', 'submission_state',
'SUBMISSION_STATE_ACTIVE', 'SUBMISSION_STATE_HOLD',
'TIMEOUT_NO_WAIT', 'TIMEOUT_WAIT_FOREVER', 'TRANSFER_FILES',
'V_ARGV', 'V_EMAIL', 'V_ENV', 'WCT_HLIMIT', 'WCT_SLIMIT', 'WD']
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.NullHandler())