accli 0.7.6__tar.gz → 0.7.9__tar.gz
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.
- {accli-0.7.6 → accli-0.7.9}/PKG-INFO +1 -1
- {accli-0.7.6 → accli-0.7.9}/accli/AcceleratorTaskDispatcher.py +1 -0
- {accli-0.7.6 → accli-0.7.9}/accli/AcceleratorTerminalCliProjectService.py +12 -7
- {accli-0.7.6 → accli-0.7.9}/accli/_version.py +1 -1
- {accli-0.7.6 → accli-0.7.9}/accli/cli.py +5 -5
- {accli-0.7.6 → accli-0.7.9}/accli.egg-info/PKG-INFO +1 -1
- {accli-0.7.6 → accli-0.7.9}/LICENSE +0 -0
- {accli-0.7.6 → accli-0.7.9}/README.md +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli/AcceleratorJobProjectService.py +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli/CsvRegionalTimeseriesValidator.py +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli/__init__.py +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli/__main__.py +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli/common.py +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli/token.py +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli.egg-info/SOURCES.txt +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli.egg-info/dependency_links.txt +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli.egg-info/entry_points.txt +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli.egg-info/requires.txt +0 -0
- {accli-0.7.6 → accli-0.7.9}/accli.egg-info/top_level.txt +0 -0
- {accli-0.7.6 → accli-0.7.9}/pyproject.toml +0 -0
- {accli-0.7.6 → accli-0.7.9}/setup.cfg +0 -0
|
@@ -112,15 +112,20 @@ class AcceleratorTerminalCliProjectService:
|
|
|
112
112
|
return todict(res.data)
|
|
113
113
|
|
|
114
114
|
def get_jobstore_push_url(self, project_slug, filename):
|
|
115
|
+
try:
|
|
115
116
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
res = self.http_client_request(
|
|
118
|
+
"GET",
|
|
119
|
+
f"{self.cli_base_url}/{project_slug}/jobstore-push-url/?filename={filename}",
|
|
120
|
+
headers=self.common_request_headers
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
except AccAPIError as err:
|
|
124
|
+
if err.status_code == 409 or err.status_code == '409':
|
|
125
|
+
return None
|
|
126
|
+
else:
|
|
127
|
+
raise err
|
|
121
128
|
|
|
122
|
-
if res.status == 409 or res.status == '409':
|
|
123
|
-
return None
|
|
124
129
|
|
|
125
130
|
return todict(res.data)
|
|
126
131
|
|
|
@@ -212,12 +212,12 @@ def dispatch(
|
|
|
212
212
|
print(job_to_dispatch.description)
|
|
213
213
|
|
|
214
214
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
215
|
+
root_job_id = term_cli_project_service.dispatch(
|
|
216
|
+
project_slug,
|
|
217
|
+
job_to_dispatch.description
|
|
218
|
+
)
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
print(f"Dispatched root job #ID: {root_job_id}")
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|