forked from htcondor/htcondor-restd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
htcondor.pyi
92 lines (79 loc) · 2.38 KB
/
htcondor.pyi
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
# stubs for htcondor
# TODO These should be moved to the Python bindings for HTCondor itself
import classad
from typing import Any, List, Optional, Union, Iterable, Tuple
class AdTypes:
Generic: Any
Accounting: Any
Any: Any
Collector: Any
Credd: Any
Defrag: Any
Grid: Any
HAD: Any
License: Any
Master: Any
Negotiator: Any
Schedd: Any
Startd: Any
Submitter: Any
class Collector:
def __init__(self, pool: Union[str, List[str], None] = ...): ...
def locate(self, daemon_type: DaemonTypes, name: str = ...): ...
def query(
self,
ad_type: AdTypes = ...,
constraint: str = ...,
projection: List[str] = ...,
statistics: List[str] = ...,
) -> List[classad.ClassAd]: ...
class DaemonTypes:
Any: Any
Master: Any
Schedd: Any
Startd: Any
Collector: Any
Negotiator: Any
HAD: Any
Generic: Any
Credd: Any
class JobAction:
Hold: Any
Release: Any
Suspend: Any
Continue: Any
Remove: Any
RemoveX: Any
Vacate: Any
VacateFast: Any
class _Param:
def __init__(self, ad: classad.ClassAd): ...
def __getitem__(self, key: str) -> Any: ...
def get(self, key: str, default: Any = ...) -> Any: ...
def setdefault(self, key: str, default: Any = ...) -> None: ...
def update(self, E: Any, **F: Any) -> None: ...
def keys(self) -> Iterable[str]: ...
def items(self) -> Iterable[Tuple[str, Any]]: ...
def values(self) -> Iterable[Any]: ...
def refresh(self) -> None: ...
class RemoteParam:
def __init__(self, ad: classad.ClassAd): ...
def __getitem__(self, key: str) -> Any: ...
def get(self, key: str, default: Any = ...) -> Any: ...
def setdefault(self, key: str, default: Any = ...) -> None: ...
def update(self, E: Any, **F: Any) -> None: ...
def keys(self) -> Iterable[str]: ...
def items(self) -> Iterable[Tuple[str, Any]]: ...
def values(self) -> Iterable[Any]: ...
def refresh(self) -> None: ...
class Schedd:
def __init__(self, location_ad: Optional[classad.ClassAd] = ...): ...
def act(
self, action: JobAction, job_spec: Union[List[str], str], reason: str = ...
) -> classad.ClassAd: ...
def transaction(self) -> Transaction: ...
class Submit(dict):
def queue(self, txn: Transaction) -> int: ...
class Transaction: ...
param: _Param
def reload_config() -> None: ...