Skip to content
Snippets Groups Projects

Use asyncio for provisioning

Closed Pelle Koster requested to merge async-provision into develop
  • Use asyncio for provisioning. Concurrency is achieved using TaskGroups which automatically collects and raises errors. Any pending tasks are cancelled.
  • Use httpx instead of requests
    • httpx has slightly different errors, so we need slightly different error handling
    • use pytest-httpx instead of responses. The provided httpx_mock fixture has similar but slightly different api. By default all mocked requests must be called exactly once. The is_optional and is_reusable parameters can be used to tweak this
  • Circumvents a bug in Grafana where a service account may exist, but does not show up in search
  • Number of concurrent connections to Grafana are limited, both for performance reasons and to not have the database choke on too many connections from Grafana
Edited by Pelle Koster

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading