cmu-sei / Polar

Polar is a secure and scalable knowledge graph framework, designed to address the challenges posed by building big data systems in highly regulated environments, and improve observability for DevSecOps Organizations.
Other
9 stars 1 forks source link

Consumers can't run before Observers run #14

Open vonjackets opened 2 months ago

vonjackets commented 2 months ago

Polar has a race condition that requires the Gitlab Agent Observer entrypoint (or at least one of the resource observers) to be ran before the associated consumers do. This is because the Observer's are responsible for (currently rabbitmq) creating the needed channels and exchanges for messages to be passed through.

Running the consumers first causes them to panic, running them again after the observer's have created the necessary resources fixes this.

It's likely that this job can become a responsibility of the planned "Supervisor" service or that some configuration can be passed to the broker upon its initialization @daveman1010221 Let's discuss