Skip to content

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

2 participants