Skip to content

Commit 56b89d6

Browse files
author
Andrei Neagu
committed
typos
1 parent fb04b13 commit 56b89d6

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from ._api import (
22
cancel_operation,
33
restart_operation_stuck_in_error_during_revert,
4-
restart_operation_sutck_in_manual_intervention_during_create,
4+
restart_operation_stuck_in_manual_intervention_during_create,
55
start_operation,
66
)
77
from ._deferred_runner import (
8-
get_opration_context_proxy,
8+
get_operation_context_proxy,
99
get_step_group_proxy,
1010
get_step_store_proxy,
1111
)
@@ -29,7 +29,7 @@
2929
"BaseStep",
3030
"cancel_operation",
3131
"get_generic_scheduler_lifespans",
32-
"get_opration_context_proxy",
32+
"get_operation_context_proxy",
3333
"get_step_group_proxy",
3434
"get_step_store_proxy",
3535
"Operation",
@@ -39,8 +39,8 @@
3939
"ParallelStepGroup",
4040
"ProvidedOperationContext",
4141
"RequiredOperationContext",
42-
"restart_operation_sutck_in_manual_intervention_during_create",
4342
"restart_operation_stuck_in_error_during_revert",
43+
"restart_operation_stuck_in_manual_intervention_during_create",
4444
"ScheduleId",
4545
"SingleStepGroup",
4646
"start_operation",

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async def cancel_operation(app: FastAPI, schedule_id: ScheduleId) -> None:
2525
await get_core(app).cancel_operation(schedule_id)
2626

2727

28-
async def restart_operation_sutck_in_manual_intervention_during_create(
28+
async def restart_operation_stuck_in_manual_intervention_during_create(
2929
app: FastAPI, schedule_id: ScheduleId, step_name: StepName
3030
) -> None:
3131
"""

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_deferred_runner.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def get_step_group_proxy(context: DeferredContext) -> StepGroupProxy:
6565
)
6666

6767

68-
def get_opration_context_proxy(context: DeferredContext) -> OperationContextProxy:
68+
def get_operation_context_proxy(context: DeferredContext) -> OperationContextProxy:
6969
app: FastAPI = context["app"]
7070
schedule_id: ScheduleId = context["schedule_id"]
7171
operation_name: OperationName = context["operation_name"]
@@ -175,10 +175,10 @@ async def run(cls, context: DeferredContext) -> None:
175175

176176
step = _get_step(context)
177177

178-
opration_context_proxy = get_opration_context_proxy(context)
178+
operation_context_proxy = get_operation_context_proxy(context)
179179

180180
if is_creating:
181-
required_context = await opration_context_proxy.get_required_context(
181+
required_context = await operation_context_proxy.get_required_context(
182182
*step.get_create_requires_context_keys()
183183
)
184184
_raise_if_any_context_value_is_none(required_context)
@@ -191,7 +191,7 @@ async def run(cls, context: DeferredContext) -> None:
191191
provided_operation_context, create_provides_keys
192192
)
193193
else:
194-
required_context = await opration_context_proxy.get_required_context(
194+
required_context = await operation_context_proxy.get_required_context(
195195
*step.get_revert_requires_context_keys()
196196
)
197197
_raise_if_any_context_value_is_none(required_context)
@@ -204,7 +204,7 @@ async def run(cls, context: DeferredContext) -> None:
204204
provided_operation_context, revert_provides_keys
205205
)
206206

207-
await opration_context_proxy.set_provided_context(provided_operation_context)
207+
await operation_context_proxy.set_provided_context(provided_operation_context)
208208

209209
@classmethod
210210
async def on_result(cls, result: None, context: DeferredContext) -> None:

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/generic_scheduler/_operation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_create_provides_context_keys(cls) -> set[str]:
6060
async def get_create_retries(cls, context: DeferredContext) -> int:
6161
"""
6262
[optional] amount of retires in case of creation
63-
HINT: you can use `get_opration_context_proxy()`, `get_step_group_proxy(context)`
63+
HINT: you can use `get_operation_context_proxy()`, `get_step_group_proxy(context)`
6464
and `get_step_store_proxy(context)` to implement custom retry strategy
6565
"""
6666
assert context # nosec
@@ -72,7 +72,7 @@ async def get_create_wait_between_attempts(
7272
) -> timedelta:
7373
"""
7474
[optional] wait time between retires case of creation
75-
HINT: you can use `get_opration_context_proxy()`, `get_step_group_proxy(context)`
75+
HINT: you can use `get_operation_context_proxy()`, `get_step_group_proxy(context)`
7676
and `get_step_store_proxy(context)` to implement custom retry strategy
7777
"""
7878
assert context # nosec
@@ -120,7 +120,7 @@ def get_revert_provides_context_keys(cls) -> set[str]:
120120
async def get_revert_retries(cls, context: DeferredContext) -> int:
121121
"""
122122
[optional] amount of retires in case of failure
123-
HINT: you can use `get_opration_context_proxy()`, `get_step_group_proxy(context)`
123+
HINT: you can use `get_operation_context_proxy()`, `get_step_group_proxy(context)`
124124
and `get_step_store_proxy(context)` to implement custom retry strategy
125125
"""
126126
assert context # nosec
@@ -132,7 +132,7 @@ async def get_revert_wait_between_attempts(
132132
) -> timedelta:
133133
"""
134134
[optional] timeout between retires in case of failure
135-
HINT: you can use `get_opration_context_proxy()`, `get_step_group_proxy(context)`
135+
HINT: you can use `get_operation_context_proxy()`, `get_step_group_proxy(context)`
136136
and `get_step_store_proxy(context)` to implement custom retry strategy
137137
"""
138138
assert context # nosec

services/dynamic-scheduler/tests/unit/services/generic_scheduler/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
def register_operation() -> Iterable[Callable[[OperationName, Operation], None]]:
1313
to_unregister: list[OperationName] = []
1414

15-
def _(opration_name: OperationName, operation: Operation) -> None:
16-
OperationRegistry.register(opration_name, operation)
17-
to_unregister.append(opration_name)
15+
def _(operation_name: OperationName, operation: Operation) -> None:
16+
OperationRegistry.register(operation_name, operation)
17+
to_unregister.append(operation_name)
1818

1919
yield _
2020

21-
for opration_name in to_unregister:
22-
OperationRegistry.unregister(opration_name)
21+
for operation_name in to_unregister:
22+
OperationRegistry.unregister(operation_name)

services/dynamic-scheduler/tests/unit/services/generic_scheduler/test__core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
SingleStepGroup,
3232
cancel_operation,
3333
restart_operation_stuck_in_error_during_revert,
34-
restart_operation_sutck_in_manual_intervention_during_create,
34+
restart_operation_stuck_in_manual_intervention_during_create,
3535
start_operation,
3636
)
3737
from simcore_service_dynamic_scheduler.services.generic_scheduler._core import get_core
@@ -1084,7 +1084,7 @@ async def test_wait_for_manual_intervention(
10841084
_GlobalStepIssueTracker.set_issue_solved()
10851085
await limited_gather(
10861086
*(
1087-
restart_operation_sutck_in_manual_intervention_during_create(
1087+
restart_operation_stuck_in_manual_intervention_during_create(
10881088
selected_app, schedule_id, step.get_step_name()
10891089
)
10901090
for step in steps_to_restart

services/dynamic-scheduler/tests/unit/services/generic_scheduler/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _assert_order_random(
7373
steps_names.remove(step_name)
7474

7575

76-
def _asseert_expected_order(
76+
def _assert_expected_order(
7777
steps_call_order: list[tuple[str, str]],
7878
expected_order: list[BaseExpectedStepOrder],
7979
*,
@@ -119,7 +119,7 @@ async def ensure_expected_order(
119119
async for attempt in AsyncRetrying(**_RETRY_PARAMS):
120120
with attempt:
121121
await asyncio.sleep(0) # wait for envet to trigger
122-
_asseert_expected_order(
122+
_assert_expected_order(
123123
detected_calls,
124124
expected_order,
125125
use_only_first_entries=use_only_first_entries,

0 commit comments

Comments
 (0)