Skip to content

Commit

Permalink
Reduce ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 5, 2024
1 parent 6816c2e commit 325fa4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lvmapi/routers/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class AlertsSummary(BaseModel):
@router.get("")
@router.get("/")
@router.get("/summary")
@cache_response("alerts:summary", ttl=60, response_model=AlertsSummary)
@cache_response("alerts:summary", ttl=30, response_model=AlertsSummary)
async def summary():
"""Summary of alerts."""

Expand Down
4 changes: 2 additions & 2 deletions src/lvmapi/routers/enclosure.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ class NPSBody(BaseModel):
@router.get("")
@router.get("/")
@router.get("/status")
@cache_response("enclosure:status", ttl=60, response_model=EnclosureStatus)
@cache_response("enclosure:status", ttl=15, response_model=EnclosureStatus)
async def status():
"""Performs an emergency shutdown of the enclosure and telescopes."""
"""Returns the enclosure status."""

try:
async with GatheringTaskGroup() as group:
Expand Down

0 comments on commit 325fa4f

Please sign in to comment.