nextmv 0.22.0__py3-none-any.whl → 0.23.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nextmv/__about__.py +1 -1
- nextmv/cloud/__init__.py +1 -0
- nextmv/cloud/run.py +26 -0
- {nextmv-0.22.0.dist-info → nextmv-0.23.0.dist-info}/METADATA +1 -1
- {nextmv-0.22.0.dist-info → nextmv-0.23.0.dist-info}/RECORD +7 -7
- {nextmv-0.22.0.dist-info → nextmv-0.23.0.dist-info}/WHEEL +0 -0
- {nextmv-0.22.0.dist-info → nextmv-0.23.0.dist-info}/licenses/LICENSE +0 -0
nextmv/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "v0.
|
|
1
|
+
__version__ = "v0.23.0"
|
nextmv/cloud/__init__.py
CHANGED
|
@@ -45,6 +45,7 @@ from .run import Metadata as Metadata
|
|
|
45
45
|
from .run import RunConfiguration as RunConfiguration
|
|
46
46
|
from .run import RunInformation as RunInformation
|
|
47
47
|
from .run import RunLog as RunLog
|
|
48
|
+
from .run import RunQueueing as RunQueueing
|
|
48
49
|
from .run import RunResult as RunResult
|
|
49
50
|
from .run import RunType as RunType
|
|
50
51
|
from .run import RunTypeConfiguration as RunTypeConfiguration
|
nextmv/cloud/run.py
CHANGED
|
@@ -128,6 +128,30 @@ class RunTypeConfiguration(BaseModel):
|
|
|
128
128
|
"""ID of the reference for the run type."""
|
|
129
129
|
|
|
130
130
|
|
|
131
|
+
class RunQueueing(BaseModel):
|
|
132
|
+
"""Queueing configuration for a run."""
|
|
133
|
+
|
|
134
|
+
priority: Optional[int] = None
|
|
135
|
+
"""
|
|
136
|
+
Priority of the run in the queue. 1 is the highest priority, 10 is the
|
|
137
|
+
lowest priority.
|
|
138
|
+
"""
|
|
139
|
+
disabled: Optional[bool] = None
|
|
140
|
+
"""
|
|
141
|
+
Whether the run should be queued, or not. If True, the run will not be
|
|
142
|
+
queued. If False, the run will be queued.
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
def __post_init_post_parse__(self):
|
|
146
|
+
"""Validations done after parsing the model."""
|
|
147
|
+
|
|
148
|
+
if self.priority is not None and (self.priority < 1 or self.priority > 10):
|
|
149
|
+
raise ValueError("Priority must be between 1 and 10.")
|
|
150
|
+
|
|
151
|
+
if self.disabled is not None and self.disabled not in {True, False}:
|
|
152
|
+
raise ValueError("Disabled must be a boolean value.")
|
|
153
|
+
|
|
154
|
+
|
|
131
155
|
class RunConfiguration(BaseModel):
|
|
132
156
|
"""Configuration for an app run."""
|
|
133
157
|
|
|
@@ -139,6 +163,8 @@ class RunConfiguration(BaseModel):
|
|
|
139
163
|
"""Run type configuration for the run."""
|
|
140
164
|
secrets_collection_id: Optional[str] = None
|
|
141
165
|
"""ID of the secrets collection to use for the run."""
|
|
166
|
+
queuing: Optional[RunQueueing] = None
|
|
167
|
+
"""Queueing configuration for the run."""
|
|
142
168
|
|
|
143
169
|
|
|
144
170
|
class ExternalRunResult(BaseModel):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
nextmv/__about__.py,sha256=
|
|
1
|
+
nextmv/__about__.py,sha256=SaoMA-zT-KKas7BJjyDi5vRFQ0KVW0fwwmJqCzguwBY,24
|
|
2
2
|
nextmv/__entrypoint__.py,sha256=o6xYGBBUgCY_htteW-qNJfp-S3Th8dzS4RreJcDCnzM,1333
|
|
3
3
|
nextmv/__init__.py,sha256=rz9oP7JGyFQJdUtYX4j9xx4Gv4LMGfNvXoEID5qUqig,1354
|
|
4
4
|
nextmv/base_model.py,sha256=mdaBe-epNK1cFgP4TxbOtn3So4pCi1vMTOrIBkCBp7A,1050
|
|
@@ -7,7 +7,7 @@ nextmv/logger.py,sha256=5qQ7E3Aaw3zzkIeiUuwYGzTcB7VhVqIzNZm5PHmdpUI,852
|
|
|
7
7
|
nextmv/model.py,sha256=rwBdgmKSEp1DPv43zF0azj3QnbHO6O6wKs0PIGvVS40,9861
|
|
8
8
|
nextmv/options.py,sha256=uLMGNt8MoBmtrcZSuinDZ7z8yq58bzHKohBRqC80r_s,18225
|
|
9
9
|
nextmv/output.py,sha256=cxw7Z0dTj5u42w2MQLOz2gesj046tvYFSWmhSZtRSXU,20082
|
|
10
|
-
nextmv/cloud/__init__.py,sha256=
|
|
10
|
+
nextmv/cloud/__init__.py,sha256=IjvO3xYvrU7nw2VDpvb2UCXV80kRYMSx9IRT6IUu68w,3349
|
|
11
11
|
nextmv/cloud/acceptance_test.py,sha256=NtqGhj-UYibxGBbU2kfjr-lYcngojb_5VMvK2WZwibI,6620
|
|
12
12
|
nextmv/cloud/account.py,sha256=mZUGzV-uMGBA5BC_FPtsiCMFuz5jxEZ3O1BbELZIm18,1841
|
|
13
13
|
nextmv/cloud/application.py,sha256=XZvR0e2sx3HPLp6nhZEbwx7xytDSFRgDoyFDkIrGSWs,62362
|
|
@@ -17,11 +17,11 @@ nextmv/cloud/input_set.py,sha256=ovkP17-jYs0yWrbqTM6Nl5ubWQabD_UrDqAHNo8aE2s,672
|
|
|
17
17
|
nextmv/cloud/instance.py,sha256=UfyfZXfL1ugCGAB6zwZJIAi8qxI1JCUGsluwaGdjfN4,1223
|
|
18
18
|
nextmv/cloud/manifest.py,sha256=Fdjw4c14_ph20ASOzBs2mLslyLs1jGSxWThipGFp8rk,7458
|
|
19
19
|
nextmv/cloud/package.py,sha256=Y3RethLiXXW7Y6_QBJDJdd7mFNaYaSBMyasIeGLav8o,12287
|
|
20
|
-
nextmv/cloud/run.py,sha256=
|
|
20
|
+
nextmv/cloud/run.py,sha256=NHuEz9qBhXKFRygSNeSXVvX4vPSsmM-KfJjh6W473XI,9567
|
|
21
21
|
nextmv/cloud/secrets.py,sha256=kqlN4ceww_L4kVTrAU8BZykRzXINO3zhMT_BLYea6tk,1764
|
|
22
22
|
nextmv/cloud/status.py,sha256=C-ax8cLw0jPeh7CPsJkCa0s4ImRyFI4NDJJxI0_1sr4,602
|
|
23
23
|
nextmv/cloud/version.py,sha256=sjVRNRtohHA97j6IuyM33_DSSsXYkZPusYgpb6hlcrc,1244
|
|
24
|
-
nextmv-0.
|
|
25
|
-
nextmv-0.
|
|
26
|
-
nextmv-0.
|
|
27
|
-
nextmv-0.
|
|
24
|
+
nextmv-0.23.0.dist-info/METADATA,sha256=R5bHWU5ED-4CqVuOOWEWn5SByiMpiUS1AJpaoYXpRr0,14557
|
|
25
|
+
nextmv-0.23.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
26
|
+
nextmv-0.23.0.dist-info/licenses/LICENSE,sha256=ZIbK-sSWA-OZprjNbmJAglYRtl5_K4l9UwAV3PGJAPc,11349
|
|
27
|
+
nextmv-0.23.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|