compliance-framework / assessment-runtime

Other
3 stars 0 forks source link

BUG: Messages need ack'ing #45

Closed ianmiell closed 4 months ago

ianmiell commented 4 months ago

At the moment messages are picked up on a simple NATS topic. When the next message arrives, all the messages up to that point are read in. This means that the first plan activity gets run n times for each new plan+activity added.

We need to use jetstream queues rather than topics, it seems. Creating ticket as this was not a 5-minute job.

ianmiell commented 4 months ago

https://github.com/nats-io/nats.go

ianmiell commented 4 months ago

Issue was that cron wasn't cleared, creating dupes. Fixed.