sfapi-client 0.3.0__tar.gz → 0.3.1__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.
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/PKG-INFO +1 -1
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_async/compute.py +3 -2
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_sync/compute.py +3 -2
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/.github/dependabot.yml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/.github/workflows/black.yml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/.github/workflows/mkdocs.yml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/.github/workflows/pypi.yml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/.github/workflows/pytest.yml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/.github/workflows/ruff.yml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/.gitignore +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/.pre-commit-config.yaml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/LEGAL +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/LICENSE +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/README.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/community/contributing.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/examples/check_current_and_past_jobs.ipynb +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/examples/getting_bearer_token.ipynb +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/examples/run_job_and_check_status.ipynb +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/gen_examples.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/gen_sync.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/javascript/apiselector.js +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/quickstart/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/SUMMARY.txt +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/client/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/compute/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/exceptions/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/groups/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/jobs/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/paths/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/projects/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/resources/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/docs/reference/async/users/index.md +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/mkdocs.yml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/pyproject.toml +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/pytest.ini +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/requirements-dev.txt +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/scripts/run.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/__init__.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_async/__init__.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_async/client.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_async/groups.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_async/jobs.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_async/paths.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_async/projects.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_async/users.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_compute.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_jobs.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_models/__init__.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_models/job_status_response_sacct.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_models/job_status_response_squeue.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_models/resources.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_monitor.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_sync/__init__.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_sync/client.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_sync/groups.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_sync/jobs.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_sync/paths.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_sync/projects.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_sync/users.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_utils.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/client.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/compute.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/exceptions.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/groups.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/jobs.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/paths.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/projects.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/resources.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/users.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/conftest.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_api.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_api_async.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_client.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_client_async.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_compute.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_compute_async.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_groups.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_groups_async.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_jobs.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_jobs_async.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_key.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_paths.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_paths_async.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_projects.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_projects_async.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_resources.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_resources_async.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_users.py +0 -0
- {sfapi_client-0.3.0 → sfapi_client-0.3.1}/tests/test_users_async.py +0 -0
|
@@ -58,10 +58,11 @@ class AsyncCompute(ComputeBase):
|
|
|
58
58
|
json_response = r.json()
|
|
59
59
|
task = Task.model_validate(json_response)
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
status = task.status.lower()
|
|
62
|
+
if status in ["error", "failed"]:
|
|
62
63
|
raise SfApiError(task.result)
|
|
63
64
|
|
|
64
|
-
if
|
|
65
|
+
if status not in ["completed", "cancelled"]:
|
|
65
66
|
await _ASYNC_SLEEP(1)
|
|
66
67
|
continue
|
|
67
68
|
|
|
@@ -58,10 +58,11 @@ class Compute(ComputeBase):
|
|
|
58
58
|
json_response = r.json()
|
|
59
59
|
task = Task.model_validate(json_response)
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
status = task.status.lower()
|
|
62
|
+
if status in ["error", "failed"]:
|
|
62
63
|
raise SfApiError(task.result)
|
|
63
64
|
|
|
64
|
-
if
|
|
65
|
+
if status not in ["completed", "cancelled"]:
|
|
65
66
|
_SLEEP(1)
|
|
66
67
|
continue
|
|
67
68
|
|
|
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
|
|
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
|
|
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
|
{sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_models/job_status_response_sacct.py
RENAMED
|
File without changes
|
{sfapi_client-0.3.0 → sfapi_client-0.3.1}/src/sfapi_client/_models/job_status_response_squeue.py
RENAMED
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|