Loki: add a run-once flag to the compactor (#6281)
Loki: add a run-once flag to the compactor (#6281)

* add a run once flag to the compactor to allow it to cleanup index files with a single manual invocation. Useful when using migrate tool.

Signed-off-by: Edward Welch <4e1cbdeb5d169ce17df53d96f1e78e8fa81360a1@grafana.com>

* fix lint

Signed-off-by: Edward Welch <4e1cbdeb5d169ce17df53d96f1e78e8fa81360a1@grafana.com>
grafana/loki,grafana/loki,grafana/loki,grafana/loki,grafana/loki,grafana/loki