Skip to content

Conversation

@allanlasser
Copy link
Member

In a few cases, a task to sync an org with Wix could execute before the organization and its members are done saving to the database. This would leave the task unable to find the organization it needs to sync. By waiting until a commit, the we ensure the task has the data it needs to succeed.

This also addresses a separate, low-risk race condition where the active subscription count could change between retreiving it and starting a subscription, leading us to exceed our maximum active subscription count.

@allanlasser allanlasser temporarily deployed to squarelet-pi-fix-race-c-rrith1 December 8, 2025 20:39 Inactive
@duckduckgrayduck
Copy link
Contributor

I think this PR would be a better place to address the comments about Wix sync in this PR
#514

@allanlasser allanlasser self-assigned this Dec 12, 2025
In a few cases, a task to sync an org with Wix could execute before the organization and its members are done saving to the database. This would leave the task unable to find the organization it needs to sync. By waiting until a commit, the we ensure the task has the data it needs to succeed.

This also addresses a separate, low-risk  race condition where the active subscription count could change between retreiving it and starting a subscription, leading us to exceed our maximum active subscription count.
@allanlasser
Copy link
Member Author

@mitchelljkotler I filed #522 as a follow-on task.

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.

4 participants