oncall-engine/engine/apps/grafana_plugin/tests
Michael Derynck d1cb862125
Make sync settings configurable (#5002)
# What this PR does
Add settings for how sync jobs get split up to control throughput of
requests.
- `SYNC_V2_MAX_TASKS ` controls how many tasks can run concurrently
- `SYNC_V2_PERIOD_SECONDS` controls the time offset before starting
another set of tasks each time `SYNC_V2_MAX_TASKS` is reached
- `SYNC_V2_BATCH_SIZE` controls how many organizations will be sync'd
per task

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-10 14:17:46 +00:00
..
test_app_config.py remove unnecessary CI step bash command (#4397) 2024-05-24 15:13:38 -04:00
test_gcom.py Handle a deleted organization triggering auth (#4937) 2024-08-28 16:32:24 +00:00
test_gcom_api_client.py address occasional missing nextCursor data key from GCOM GET /instances (#4794) 2024-08-09 15:42:10 +00:00
test_grafana_api_client.py Rework organization sync and grafana plugin engine backend (#4756) 2024-07-31 16:12:56 +00:00
test_install.py bump uwsgi to 2.0.26 + Python to 3.12.3 (#4495) 2024-06-10 15:33:37 -04:00
test_self_hosted_install.py Don't update RBAC status on Grafana server error (#4753) 2024-07-29 16:28:35 +00:00
test_status.py Fix inconsistency with API URL returned by plugin status (#3122) 2023-10-16 17:38:08 +00:00
test_sync.py Fix flaky test depending on DB ordering (#4907) 2024-08-22 18:56:59 +00:00
test_sync_v2.py Make sync settings configurable (#5002) 2024-09-10 14:17:46 +00:00