accli 0.7.9__tar.gz → 0.7.10__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.9 → accli-0.7.10}/PKG-INFO +1 -1
- {accli-0.7.9 → accli-0.7.10}/accli/AcceleratorTaskDispatcher.py +5 -1
- {accli-0.7.9 → accli-0.7.10}/accli/_version.py +1 -1
- {accli-0.7.9 → accli-0.7.10}/accli.egg-info/PKG-INFO +1 -1
- {accli-0.7.9 → accli-0.7.10}/LICENSE +0 -0
- {accli-0.7.9 → accli-0.7.10}/README.md +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli/AcceleratorJobProjectService.py +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli/AcceleratorTerminalCliProjectService.py +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli/CsvRegionalTimeseriesValidator.py +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli/__init__.py +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli/__main__.py +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli/cli.py +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli/common.py +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli/token.py +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli.egg-info/SOURCES.txt +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli.egg-info/dependency_links.txt +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli.egg-info/entry_points.txt +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli.egg-info/requires.txt +0 -0
- {accli-0.7.9 → accli-0.7.10}/accli.egg-info/top_level.txt +0 -0
- {accli-0.7.9 → accli-0.7.10}/pyproject.toml +0 -0
- {accli-0.7.9 → accli-0.7.10}/setup.cfg +0 -0
|
@@ -5,6 +5,7 @@ import hashlib
|
|
|
5
5
|
import shutil
|
|
6
6
|
import tempfile
|
|
7
7
|
import requests
|
|
8
|
+
from functools import lru_cache
|
|
8
9
|
from typing import Optional, List, Dict
|
|
9
10
|
from pydantic.v1 import BaseModel, root_validator
|
|
10
11
|
from accli.AcceleratorTerminalCliProjectService import AcceleratorTerminalCliProjectService
|
|
@@ -60,6 +61,7 @@ def copy_tree(src, dst):
|
|
|
60
61
|
else:
|
|
61
62
|
shutil.copy2(src_path, dst_path)
|
|
62
63
|
|
|
64
|
+
@lru_cache(maxsize=None)
|
|
63
65
|
def push_folder_job(dir):
|
|
64
66
|
|
|
65
67
|
access_token = get_token()
|
|
@@ -204,7 +206,9 @@ class WKubeTaskKwargs(BaseModel):
|
|
|
204
206
|
job_folder = values.get('job_folder', './')
|
|
205
207
|
|
|
206
208
|
if not (values.get('repo_url') and values.get('repo_branch')):
|
|
207
|
-
remote_url, branch_name = push_folder_job(
|
|
209
|
+
remote_url, branch_name = push_folder_job(
|
|
210
|
+
os.path.abspath(job_folder)
|
|
211
|
+
)
|
|
208
212
|
values['repo_url'] = remote_url
|
|
209
213
|
values['repo_branch'] = branch_name
|
|
210
214
|
else:
|
|
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
|
|
File without changes
|
|
File without changes
|