-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gracefully handle connection errors when polling (#48)
* Handle common connection errors gracefully * Cleanup repository Correct readme command Add support for .env configuration Bump docker image to 3.12-alpine Fix `docker run` stop signal to avoid waiting shutdown timeout
- Loading branch information
Showing
5 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
# Virtual enviroments | ||
venv/ | ||
.venv/ | ||
|
||
# Python cache | ||
__pycache__/ | ||
|
||
# Editor configuration files | ||
.idea/ | ||
*.iml | ||
.vscode/ | ||
.settings/ | ||
.classpath | ||
|
||
# Nox | ||
.nox/ | ||
|
||
# Container files | ||
.env | ||
updated.txt | ||
config.yaml | ||
data/ | ||
.nox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
FROM python:3.11-buster | ||
FROM python:3.12-alpine | ||
|
||
WORKDIR /code | ||
|
||
COPY ./runner.py ./runner.py | ||
COPY ./dev-requirements/constraints.txt ./requirements.txt | ||
|
||
RUN pip install -Ur requirements.txt | ||
RUN pip install -Ur requirements.txt | ||
|
||
ENTRYPOINT python runner.py | ||
STOPSIGNAL SIGINT | ||
ENTRYPOINT ["python", "runner.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
version: "3" | ||
services: | ||
poller: | ||
build: . | ||
restart: always | ||
|
||
restart: unless-stopped | ||
|
||
env_file: .env | ||
volumes: | ||
- ./data:/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters