fablabbcn / smartcitizen-api

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

Bugfix duplicate components take 2 #328

Closed timcowlishaw closed 2 weeks ago

timcowlishaw commented 3 weeks ago

Retrying the readings for unpaired devices led to a nasty concurrency bug where duplicate components were created,, and attempting to enforce locking per device so that components are created atomically live-locked the ingestor. Instead we're only going to retry the hardware_info packet for now: readings will start being ingested when the onboarding completes.