Skip to content

Conversation

@cbaudouinjr
Copy link
Member

Fixes missing user's name migration from #222, fixes race condition where the controller wasn't updating the queued_at timestamp before the job started. This caused the job to think it was a duplicate export.

fixes #534

fix: Fixes race condition in data exports

GenerateDataExportJob.perform_later(self)
update_attribute(:queued_at, Time.now)
GenerateDataExportJob.perform_later(self)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on this

@cbaudouinjr cbaudouinjr merged commit d2c8ae3 into 2.2.1 Feb 14, 2021
@cbaudouinjr cbaudouinjr deleted the hm-534a branch February 14, 2021 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NoMethodError: undefined method `first_name' for #<Questionnaire:>

3 participants