|
22 | 22 |
|
23 | 23 | Note that several executables can be provided and wil be executed sequentially.
|
24 | 24 | """
|
25 |
| -import re |
26 | 25 | import os
|
| 26 | +import re |
27 | 27 | import shlex
|
28 |
| - |
29 | 28 | from io import StringIO
|
30 | 29 | from urllib.parse import quote
|
31 |
| -from pathlib import Path |
32 | 30 |
|
33 | 31 | from DIRAC import S_OK, gLogger
|
| 32 | +from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations |
| 33 | +from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getVOForGroup |
| 34 | +from DIRAC.ConfigurationSystem.Client.Helpers.Resources import getCESiteMapping, getDIRACPlatforms |
34 | 35 | from DIRAC.Core.Base.API import API
|
35 | 36 | from DIRAC.Core.Security.ProxyInfo import getProxyInfo
|
36 |
| -from DIRAC.Core.Workflow.Parameter import Parameter |
37 |
| -from DIRAC.Core.Workflow.Workflow import Workflow |
38 | 37 | from DIRAC.Core.Utilities.ClassAd.ClassAdLight import ClassAd
|
39 |
| -from DIRAC.Core.Utilities.Subprocess import systemCall |
40 | 38 | from DIRAC.Core.Utilities.List import uniqueElements
|
41 |
| -from DIRAC.Core.Utilities.ObjectLoader import ObjectLoader |
42 |
| -from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations |
43 |
| -from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getVOForGroup |
44 |
| -from DIRAC.ConfigurationSystem.Client.Helpers.Resources import getCESiteMapping, getDIRACPlatforms |
| 39 | +from DIRAC.Core.Utilities.Subprocess import systemCall |
| 40 | +from DIRAC.Core.Workflow.Parameter import Parameter |
| 41 | +from DIRAC.Core.Workflow.Workflow import Workflow |
45 | 42 | from DIRAC.Interfaces.API.Dirac import Dirac
|
46 |
| -from DIRAC.Workflow.Utilities.Utils import getStepDefinition, addStepToWorkflow |
47 |
| - |
48 |
| - |
49 |
| -COMPONENT_NAME = "/Interfaces/API/Job" |
| 43 | +from DIRAC.Workflow.Utilities.Utils import addStepToWorkflow, getStepDefinition |
50 | 44 |
|
51 | 45 |
|
52 | 46 | class BadJobParameterError(ValueError):
|
|
0 commit comments