Skip to content

Commit

Permalink
Reverting last change.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysrevans3 committed Jan 9, 2025
1 parent 0c69cc7 commit 11b2a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esgf-consumer/esgf_consumer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def consume(settings: Settings) -> None:
async with httpx.AsyncClient(timeout=5.0) as client:

logger.critical("http client started.")
readiness_file = open("healthcheck", "x", encoding="utf-8")
readiness_file = open("/tmp/healthcheck", "x", encoding="utf-8")

try:
# Consume messages
Expand Down Expand Up @@ -137,7 +137,7 @@ async def consume(settings: Settings) -> None:
logger.critical("Producer stopped.")

readiness_file.close()
os.remove("healthcheck")
os.remove("/tmp/healthcheck")

return None

Expand Down

0 comments on commit 11b2a1b

Please sign in to comment.