Skip to content

Commit

Permalink
Added timeout to GET
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelloeater committed Oct 31, 2023
1 parent d416688 commit 456e417
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
- If you have questions or problems deploying feel free to contact me via links in my GH Profile

> ==FIXME==
>
>
> **Well the orig API backend is only returning like 4 results... so Imma just gonna hit up db0, cause he's a cool dude ;-)**
```mermaid
flowchart
docker_compose
docker_compose
--creates--> api_server & caddy & config_gen & data_updater
caddy
--serves--> gatus & api_server
caddy
--serves--> gatus & api_server
data_updater
--updated records in --> db
Expand All @@ -28,9 +28,9 @@ api_server
config_gen
--pulls data from --> db
--pulls data from --> db0
config_gen
config_gen
--creates config for--> gatus
gatus --store data in--> gatus_postgres
Expand Down
2 changes: 1 addition & 1 deletion fedi_gatus/config_gen/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def generate_top_instances():
# TODO Ask dbo about adding params to library
# https://github.com/Fediseer/pythonseer/issues/7

d = requests.get(url='https://fediseer.com/api/v1/whitelist',
d = requests.get(url='https://fediseer.com/api/v1/whitelist', timeout=60,
params={'endorsements': 3, 'guarantors': 4, 'software_csv': 'lemmy', 'limit': 100, 'domains': True}).json()['domains']

# d = db.DbAccess().get_top_instances() # FIXME Backend is only returning a very small set of data... funnnnnn
Expand Down

0 comments on commit 456e417

Please sign in to comment.