Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform checks in parallel #10

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Perform checks in parallel #10

merged 2 commits into from
Sep 6, 2024

Conversation

maranik
Copy link

@maranik maranik commented Sep 5, 2024

Closes #6
It requires python3.11

@harsxv
Copy link
Owner

harsxv commented Sep 5, 2024

Great! I’ve just tested it, but it might be a good idea to ensure the results of the checks are always in the same order.

[{'name': 'Wikipedia Home', 'status': True}, {'name': 'Cloudflare DNS Checker', 'status': True}, {'name': 'GitHub API', 'status': True}, {'name': 'Twitter', 'status': True}, {'name': 'DigitalOcean API', 'status': True}, {'name': 'Google Public DNS', 'status': True}, {'name': 'AWS S3 API', 'status': True}, {'name': 'DigitalOcean', 'status': True}, {'name': 'Amazon Web Services', 'status': True}, {'name': 'Dummy Postgres Database', 'status': False}, {'name': 'Facebook Home', 'status': True}, {'name': 'GitHub Home', 'status': True}, {'name': 'Google Home', 'status': True}, {'name': 'Dummy MySQL Database', 'status': False}, {'name': 'Wikipedia API', 'status': True}, {'name': 'Localhost', 'status': True}]
2024-09-06 06:19:58,124 - INFO - Status page and history updated at 2024-09-06 06:19:58.124496
2024-09-06 06:19:58,124 - WARNING - Services currently down: Dummy Postgres Database, Dummy MySQL Database
[{'name': 'AWS S3 API', 'status': True}, {'name': 'Twitter', 'status': True}, {'name': 'Facebook Home', 'status': True}, {'name': 'Dummy MySQL Database', 'status': False}, {'name': 'Amazon Web Services', 'status': True}, {'name': 'Google Public DNS', 'status': True}, {'name': 'Dummy Postgres Database', 'status': False}, {'name': 'Cloudflare DNS Checker', 'status': True}, {'name': 'DigitalOcean API', 'status': True}, {'name': 'Google Home', 'status': True}, {'name': 'Wikipedia API', 'status': True}, {'name': 'DigitalOcean', 'status': True}, {'name': 'Localhost', 'status': True}, {'name': 'Wikipedia Home', 'status': True}, {'name': 'GitHub API', 'status': True}, {'name': 'GitHub Home', 'status': True}]
2024-09-06 06:21:43,214 - INFO - Status page and history updated at 2024-09-06 06:21:43.214777
2024-09-06 06:21:43,215 - WARNING - Services currently down: Dummy MySQL Database, Dummy Postgres Database

Can we map the results to the original order (from the checks.yaml file) before returning them?

@harsxv harsxv merged commit d3a1ab9 into harsxv:master Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checks are not performed in parallel
2 participants