Skip to content

Commit

Permalink
Revert "Test moving the start of the health check to a different loca…
Browse files Browse the repository at this point in the history
…tion."

This reverts commit d77e203.
  • Loading branch information
JourneyOver committed Dec 19, 2024
1 parent 8b242de commit f073f52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
import os

if __name__ == "__main__":
if os.getenv('TDM_DOCKER'):
for filename in ['healthcheck.exitstate', 'healthcheck.connectionerror']:
with open(filename, 'w') as f:
f.write('Container is Healthy')

print(f"{datetime.now().strftime('%Y-%m-%d %X')}: Starting: Twitch Drops Miner")
freeze_support()
import io
Expand Down
4 changes: 0 additions & 4 deletions twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,6 @@ async def run(self):
raise RequestException(_("login", "unexpected_content")) from exc

async def _run(self):
if os.getenv('TDM_DOCKER'):
for filename in ['healthcheck.exitstate', 'healthcheck.connectionerror']:
with open(filename, 'w') as f:
f.write('Container is Healthy')
"""
Main method that runs the whole client.
Expand Down

0 comments on commit f073f52

Please sign in to comment.