openedx / platform-plugin-aspects

Aspects plugins for the Open edX LMS and Studio
Apache License 2.0
2 stars 8 forks source link

bug: User profile errors on user creation #54

Closed bmtcril closed 6 months ago

bmtcril commented 6 months ago

When a new user registers in the LMS, sometimes the user profile sink gets triggered before their user profile row is written to MySQL, likely due to the transaction not being committed, causing "UserProfile does not exist" errors in the event sink job. In these cases the user does not appear in ClickHouse until they update their profile or the management command is written.

We should either see if we can run this sink on_commit instead of on_save or put in a retry delay for these jobs.