Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Expose CreditsApi #177

Merged
merged 11 commits into from
Jul 18, 2024
2 changes: 2 additions & 0 deletions clients/python/client/osparc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
ApiValueError,
BodyUploadFileV0FilesContentPut,
Configuration,
CreditsApi,
ErrorGet,
File,
Groups,
Expand Down Expand Up @@ -88,6 +89,7 @@
"ApiValueError",
"BodyUploadFileV0FilesContentPut",
"Configuration",
"CreditsApi",
"ErrorGet",
"File",
"FilesApi",
Expand Down
6 changes: 4 additions & 2 deletions clients/python/test/e2e/test_studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# pylint: disable=unused-variable

import shutil
from datetime import timedelta
from pathlib import Path
from uuid import UUID

Expand Down Expand Up @@ -39,15 +40,16 @@ async def test_studies_logs(
assert isinstance(status, osparc.JobStatus)
async for attempt in tenacity.AsyncRetrying(
reraise=True,
wait=tenacity.wait_fixed(1),
stop=tenacity.stop_after_delay(30),
wait=tenacity.wait_fixed(timedelta(seconds=5)),
stop=tenacity.stop_after_delay(timedelta(minutes=10)),
retry=tenacity.retry_if_exception_type(AssertionError),
):
with attempt:
status = studies_api.inspect_study_job(
study_id=f"{sleeper_study_id}", job_id=job.id
)
assert isinstance(status, osparc.JobStatus)
print(f"--- seconds idle: {attempt.retry_state.idle_for}\n", status)
assert status.stopped_at is not None
assert status.state == "SUCCESS"
try:
Expand Down
Loading