Skip to content

Commit 4a327f8

Browse files
committed
cosmetic fix
1 parent 7d6d4c9 commit 4a327f8

File tree

2 files changed

+4
-4
lines changed
  • services/api-server/src/simcore_service_api_server

2 files changed

+4
-4
lines changed

services/api-server/src/simcore_service_api_server/api/dependencies/celery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from servicelib.celery.task_manager import TaskManager
88
from settings_library.celery import CelerySettings
99

10-
from ...celery.worker_tasks.tasks import registered_pydantic_types
10+
from ...celery.worker_tasks.tasks import pydantic_types_to_register
1111

1212
ASYNC_JOB_CLIENT_NAME: Final[str] = "API_SERVER"
1313

@@ -19,7 +19,7 @@ async def on_startup() -> None:
1919
)
2020

2121
register_celery_types()
22-
register_pydantic_types(*registered_pydantic_types)
22+
register_pydantic_types(*pydantic_types_to_register)
2323

2424
app.add_event_handler("startup", on_startup)
2525

services/api-server/src/simcore_service_api_server/celery/worker_tasks/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
_logger = logging.getLogger(__name__)
2121

22-
registered_pydantic_types = (
22+
pydantic_types_to_register = (
2323
Identity,
2424
JobLinks,
2525
JobPricingSpecification,
@@ -34,7 +34,7 @@
3434

3535
def setup_worker_tasks(app: Celery) -> None:
3636
register_celery_types()
37-
register_pydantic_types(*registered_pydantic_types)
37+
register_pydantic_types(*pydantic_types_to_register)
3838

3939
with log_context(_logger, logging.INFO, msg="worker task registration"):
4040
register_task(app, run_function)

0 commit comments

Comments
 (0)