|
13 | 13 | class JobSpec(object): |
14 | 14 | """A class to hold information about the characteristics of a:class:`~psij.Job`.""" |
15 | 15 |
|
16 | | - def __init__(self, name: Optional[str] = None, executable: Optional[str] = None, |
17 | | - arguments: Optional[List[str]] = None, directory: Optional[Path] = None, |
| 16 | + def __init__(self, executable: Optional[str] = None, arguments: Optional[List[str]] = None, |
| 17 | + directory: Optional[Path] = None, name: Optional[str] = None, |
18 | 18 | inherit_environment: bool = True, environment: Optional[Dict[str, str]] = None, |
19 | 19 | stdin_path: Optional[Path] = None, stdout_path: Optional[Path] = None, |
20 | 20 | stderr_path: Optional[Path] = None, resources: Optional[ResourceSpec] = None, |
@@ -62,14 +62,14 @@ def __init__(self, name: Optional[str] = None, executable: Optional[str] = None, |
62 | 62 | refer to files inside the job directory using relative paths. |
63 | 63 |
|
64 | 64 |
|
65 | | - :param name: A name for the job. The name plays no functional role except that |
66 | | - :class:`~psij.JobExecutor` implementations may attempt to use the name to label the |
67 | | - job as presented by the underlying implementation. |
68 | 65 | :param executable: An executable, such as "/bin/date". |
69 | 66 | :param arguments: The argument list to be passed to the executable. Unlike with execve(), |
70 | 67 | the first element of the list will correspond to `argv[1]` when accessed by the invoked |
71 | 68 | executable. |
72 | 69 | :param directory: The directory, on the compute side, in which the executable is to be run |
| 70 | + :param name: A name for the job. The name plays no functional role except that |
| 71 | + :class:`~psij.JobExecutor` implementations may attempt to use the name to label the |
| 72 | + job as presented by the underlying implementation. |
73 | 73 | :param inherit_environment: If this flag is set to `False`, the job starts with an empty |
74 | 74 | environment. The only environment variables that will be accessible to the job are the |
75 | 75 | ones specified by this property. If this flag is set to `True`, which is the default, |
|
0 commit comments