alephdata / servicelayer

Common interface definitions for aleph toolkit services and applications
MIT License
7 stars 5 forks source link

Fix Redis keys #201

Closed catileptic closed 1 month ago

catileptic commented 4 months ago

The new RabbitMQ task queue implementation introduced new Redis keys. In the initial implementation, their structure was malformed due to a bug in how make_key was called.

Instead of having redis keys look like this: tq:qds:0000:analyze:finished they looked like this: tq#qds#0000#analyze:finished.

This PR fixed the problem in two stages:

First, it introduced code that creates and uses correct keys.

Then, it temporarily introduced code that delete the incorrect keys. This code was removed after all incorrect keys have been removed from the Aleph production environment.