Skip to content

Commit

Permalink
Merge branch 'globus_fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Jul 8, 2024
2 parents 6bb6f6c + e5d3072 commit f5e3d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librarian_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


@asynccontextmanager
def slack_post_at_startup_shutdown(app: FastAPI):
async def slack_post_at_startup_shutdown(app: FastAPI):
"""
Lifespan event that posts to the slack hook once
the FastAPI server starts up and shuts down.
Expand All @@ -22,7 +22,7 @@ def slack_post_at_startup_shutdown(app: FastAPI):

post_text_event_to_slack("Librarian server starting up")
yield
post_text_event_to_slack("Librarian shutting down")
post_text_event_to_slack("Librarian server shutting down")


def main() -> FastAPI:
Expand Down

0 comments on commit f5e3d8a

Please sign in to comment.