oncall-engine/engine/apps/grafana_plugin
Joey Orlando 92ac1d884f
address occasional missing nextCursor data key from GCOM GET /instances (#4794)
# What this PR does

Addressing this task exception
([logs](https://ops.grafana-ops.net/goto/rkVAurrSR?orgId=1)):
```
2024-08-08 16:30:49,455 source=engine:celery worker=ForkPoolWorker-18 task_id=969226be-64a8-4616-ac32-3909d1f0cb60 task_name=apps.grafana_plugin.tasks.sync.start_sync_organizations name=celery.app.trace level=ERROR Task apps.grafana_plugin.tasks.sync.start_sync_organizations[969226be-64a8-4616-ac32-3909d1f0cb60] raised unexpected: KeyError('nextCursor')
```

[This
conversation](https://raintank-corp.slack.com/archives/C0K031RP1/p1723158123932529)
in `#grafana-com-dev` has more context. The _tldr;_ takeaway after
chatting w/ the GCOM team was lets simply retry requests in this case.

## 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-08-09 15:42:10 +00:00
..
helpers address occasional missing nextCursor data key from GCOM GET /instances (#4794) 2024-08-09 15:42:10 +00:00
serializers Rework organization sync and grafana plugin engine backend (#4756) 2024-07-31 16:12:56 +00:00
tasks Rework organization sync and grafana plugin engine backend (#4756) 2024-07-31 16:12:56 +00:00
tests address occasional missing nextCursor data key from GCOM GET /instances (#4794) 2024-08-09 15:42:10 +00:00
views Rework organization sync and grafana plugin engine backend (#4756) 2024-07-31 16:12:56 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
apps.py Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
sync_data.py Rework organization sync and grafana plugin engine backend (#4756) 2024-07-31 16:12:56 +00:00
urls.py Rework organization sync and grafana plugin engine backend (#4756) 2024-07-31 16:12:56 +00:00