From 135ffb8d123d45b48312d64bbb199b1f1caf115e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Mon, 11 Nov 2024 19:24:13 +0000 Subject: [PATCH] Fix typo in argument in the shutdown recipe --- CHANGELOG.md | 4 ++++ src/lvmapi/routers/macros.py | 2 +- src/lvmapi/tasks.py | 7 +++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fe0070..4dc9d64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ * Allow to update LN2 fill records in the database. Add ``complete`` field to the LN2 fill model. +### 🔧 Fixed + +* Fix typo in argument in the shutdown recipe. + ## 0.1.13 - 2024-11-10 diff --git a/src/lvmapi/routers/macros.py b/src/lvmapi/routers/macros.py index afbf35c..9f4ccd6 100644 --- a/src/lvmapi/routers/macros.py +++ b/src/lvmapi/routers/macros.py @@ -32,7 +32,7 @@ async def route_get_shutdown( ) -> str: """Schedules an emergency shutdown of the enclosure and telescopes.""" - task = await shutdown_task.kiq(disable_overwtcher=disable_overwatcher) + task = await shutdown_task.kiq(disable_overwatcher=disable_overwatcher) return task.task_id diff --git a/src/lvmapi/tasks.py b/src/lvmapi/tasks.py index ed552b6..6dedf55 100644 --- a/src/lvmapi/tasks.py +++ b/src/lvmapi/tasks.py @@ -35,11 +35,14 @@ async def move_dome_task(direction: Literal["open", "close"], force: bool = Fals @broker.task() -async def shutdown_task(disable_overwtcher: bool = False): +async def shutdown_task(disable_overwatcher: bool = False): """Shuts down the system.""" async with get_gort_client() as gort: - await gort.shutdown(park_telescopes=True, disable_overwtcher=disable_overwtcher) + await gort.shutdown( + park_telescopes=True, + disable_overwatcher=disable_overwatcher, + ) return True