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

[Feature] Implement a blocked servers list #1896

Merged
merged 5 commits into from
Dec 11, 2024

Conversation

alexjustesen
Copy link
Owner

@alexjustesen alexjustesen commented Dec 6, 2024

📃 Description

This PR implements a "blocked server" list. The "allow" list set in SPEEDTEST_SERVERS will take precedent over the "blocked" list set in SPEEDTEST_BLOCKED_SERVERS.

🪵 Changelog

➕ Added

  • get a list of servers and filter them based on the blocked servers list.
  • SPEEDTEST_BLOCKED_SERVERS environment variable, this should be a comma separated list of server IDs like SPEEDTEST_BLOCKED_SERVERS="1234,09876,15432".

🧜‍♀️ Process Map

flowchart TD
    A[Select server job] --> B{Server exists?}
    B -->|Yes| Z
    B -->|No| C{Has config servers?}
    C -->|Yes| D(Choose a random server from the list)
    D --> X(Update server)
    X --> Z
    C -->|No| E{Blocked list present?}
    E -->|No| Z
    E -->|Yes| F(Get server list and filter blocked list)
    F --> G(Pick the first server from the list)
    G --> Y(Update server)
    Y --> Z(End job)
Loading

@alexjustesen alexjustesen added the 🎉 feature New feature or request label Dec 6, 2024
@alexjustesen alexjustesen self-assigned this Dec 6, 2024
@alexjustesen alexjustesen linked an issue Dec 6, 2024 that may be closed by this pull request
@alexjustesen alexjustesen marked this pull request as ready for review December 11, 2024 22:38
@alexjustesen alexjustesen merged commit d89f40d into main Dec 11, 2024
1 check passed
@alexjustesen alexjustesen deleted the 1877-feature-implement-a-blocked-servers-list branch December 11, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Implement a "blocked" servers list
1 participant