fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

`sidekiq` retries seems to be creating multiple components on a `device`?? #327

Closed oscgonfer closed 2 weeks ago

oscgonfer commented 1 month ago

Hi,

A critical issue that has started happening after our sidekiq retry test (I believe) is that it seems that we are violating uniqueness of components/sensors in the creation of a device:

https://api.smartcitizen.me/v0/devices/17537

You can see it here:

https://smartcitizen.me/kits/17537

image

Weird thing is... some sensors are there 3 times, others 2 times...

timcowlishaw commented 1 month ago

Oh that's extremely strange, I will take a look asap!

El mié., 5 jun. 2024 17:33, oscgonfer @.***> escribió:

Assigned #327 https://github.com/fablabbcn/smartcitizen-api/issues/327 to @timcowlishaw https://github.com/timcowlishaw.

— Reply to this email directly, view it on GitHub https://github.com/fablabbcn/smartcitizen-api/issues/327#event-13053406484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABBNYM6Y2Q2UJIKPP4OVDZF4VTRAVCNFSM6AAAAABI27ENPOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGA2TGNBQGY2DQNA . You are receiving this because you were assigned.Message ID: @.***>

timcowlishaw commented 2 weeks ago

Fixed in #328 !