Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(measure): add mutex to asset update to prevent race condition #389

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

sebtiz13
Copy link
Member

@sebtiz13 sebtiz13 commented Jan 9, 2025

What does this PR do ?

Just add mutex lock to asset document update in measures ingest to try to fix a conflict on update due to race condition.
This race condition could be arrived if 2 different devices are linked to the same asset and get processed at the same time.

@sebtiz13 sebtiz13 self-assigned this Jan 9, 2025
@sebtiz13 sebtiz13 merged commit 53371f4 into master Jan 9, 2025
7 checks passed
@sebtiz13 sebtiz13 deleted the fix/mutex-asset-update-ingest branch January 9, 2025 14:39
github-actions bot pushed a commit that referenced this pull request Jan 9, 2025
## [2.5.1](v2.5.0...v2.5.1) (2025-01-09)

### Bug Fixes

* **measure:** add mutex to asset update to prevent race condition ([#389](#389)) ([53371f4](53371f4))
rolljee added a commit that referenced this pull request Jan 22, 2025
* fix(measure): add mutex to asset update to prevent race condition (#389)

* chore(release): 2.5.1 [skip ci]

## [2.5.1](v2.5.0...v2.5.1) (2025-01-09)

### Bug Fixes

* **measure:** add mutex to asset update to prevent race condition ([#389](#389)) ([53371f4](53371f4))

* docs: add since badges to ingestMeasure(s) method (#390)

Co-authored-by: rolljee <[email protected]>

* feat: update deps (#393)

* chore: update deps

* chore(release): 2.6.0-dev.1 [skip ci]

## [2.6.0-dev.1](v2.5.1...v2.6.0-dev.1) (2025-01-22)

### Features

* update deps ([#393](#393)) ([1b9b936](1b9b936))

* fix: typo in packages/package.json

* chore(release): 2.6.0-dev.2 [skip ci]

## [2.6.0-dev.2](v2.6.0-dev.1...v2.6.0-dev.2) (2025-01-22)

### Features

* trigger release ([9c82581](9c82581))

### Bug Fixes

* conflict between ([adf8d0f](adf8d0f))
* typo in packages/package.json ([9b6c495](9b6c495))

---------

Co-authored-by: Sébastien Rodriguez <[email protected]>
Co-authored-by: semantic-release-bot <[email protected]>
Co-authored-by: Juiced66 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants