Skip to content

Commit 76f6358

Browse files
author
Andrei Neagu
committed
more typos
1 parent 57ae549 commit 76f6358

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/service-library/src/servicelib/long_running_interfaces/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ async def _format_remaining_attempts(
180180
"""returns a string in the follwoing format `[{remaining}/{total}]`"""
181181
schedule_data = await self._store_interface.get(unique_id)
182182
attempt = (
183-
"unkown"
183+
"unknown"
184184
if schedule_data is None
185185
else retry_count - schedule_data.remaining_attempts
186186
)
@@ -236,7 +236,7 @@ async def _poll_for_result(
236236

237237
if result.error is not None:
238238
_logger.debug(
239-
"'%s' '%s' ended with erorr='%s'", name, unique_id, result.error
239+
"'%s' '%s' ended with error='%s'", name, unique_id, result.error
240240
)
241241
await asyncio.sleep(_SLEEP_BEFORE_RETRY.total_seconds())
242242
continue # tries again if there any attempts left

packages/service-library/src/servicelib/long_running_interfaces_runners/asyncio_tasks/_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RemoteHandlerName,
1313
StartParams,
1414
)
15-
from ._errors import HandlerNotRegisteredError, TaksNotFoundError
15+
from ._errors import HandlerNotRegisteredError, TaskNotFoundError
1616
from ._registry import AsyncTaskRegistry
1717

1818
_MAX_CANCEL_DURATION_S: Final[NonNegativeFloat] = 1
@@ -70,7 +70,7 @@ async def is_running(self, unique_id: JobUniqueId) -> bool:
7070
async def get_result(self, unique_id: JobUniqueId) -> Any | None:
7171
"""provides the result of the job once finished"""
7272
if unique_id not in self._tasks:
73-
raise TaksNotFoundError(unique_id=unique_id)
73+
raise TaskNotFoundError(unique_id=unique_id)
7474

7575
task = self._tasks[unique_id]
7676
return task.result()

packages/service-library/src/servicelib/long_running_interfaces_runners/asyncio_tasks/_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class HandlerNotRegisteredError(BaseAsyncioTasksError):
1515
msg_template = "a handler name='{name}' was not found"
1616

1717

18-
class TaksNotFoundError(BaseAsyncioTasksError):
18+
class TaskNotFoundError(BaseAsyncioTasksError):
1919
msg_template = "no task found for unique_id='{unique_id}'"

scripts/release/monitor_release/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_release_settings(env_file_path: Path):
116116
starts_with="staging-simcore_staging",
117117
)
118118
case _:
119-
msg = f"Unkown {deployment=}. Please setupa a new ReleaseSettings for this configuration"
119+
msg = f"Unknown {deployment=}. Please setupa a new ReleaseSettings for this configuration"
120120
raise ValueError(msg)
121121

122122
return settings

0 commit comments

Comments
 (0)