grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.6k stars 297 forks source link

Only run cleanup for integrations deleted recently #4677

Closed mderynck closed 6 months ago

mderynck commented 6 months ago

What this PR does

Changes operations to cleanup deleted empty integrations so that they are only performed on organizations that have deleted integrations recently. The previous task checked everything because we were not performing the cleanup on a regular basis, now that it has been scheduled regularly we can operate on recently deleted integrations instead.

The existing task has been removed from the schedule, the code for it can be removed after the other tasks have cleared.

Which issue(s) this PR closes

Closes [issue link here]

Checklist