Skip to content

Commit

Permalink
Fix typo in argument in the shutdown recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 11, 2024
1 parent 07ecb17 commit 135ffb8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/lvmapi/routers/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
7 changes: 5 additions & 2 deletions src/lvmapi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 135ffb8

Please sign in to comment.