You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With PR #12335 the Habitica codebase has been updated to support MongoDB 4.2 and transactions making it possible to fix this issue.
Transactions allow operations on multiple documents to be executed ensuring that either all of them are executed correctly or none, making it possible to fix this issue.
This may be fixed by using transactions and wrapping everything that happens at cron in a transaction but we should make sure that if cron gets completely reverted the website and apps will give the user another chance to cron without the RYA model being shown twice. Also given how many parts of the code cron touches it might require a very big refactoring to use transactions when scoring tasks, ...
As described at #10806 (comment) and in #10711, if a VersionError occurs while cron is processing Dailies or Habits, cron will stop prematurely.
That should not happen. Cron should either:
I'll leave this as suggestion-discussion for a few days in case staff have any comments and then mark it as help wanted.The text was updated successfully, but these errors were encountered: