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
deletes the Domain from the database and trigger a task called: symlink_domain. This task tries to get the Domain object using the pk from the database and it fails because the object was already removed.
refactor the task and the helper methods (Symlink.symlink_cnames and Symlink.remove_symlink_cname) to depend only in the Domain.domain string instead of the whole Domain object
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This method,
https://github.com/rtfd/readthedocs.org/blob/df85fefc5f59c7a00bcc1ffe23965efe75e8c895/readthedocs/projects/models.py#L1030-L1034
deletes the Domain from the database and trigger a task called:
symlink_domain
. This task tries to get the Domain object using thepk
from the database and it fails because the object was already removed.I do see two different approaches here:
Symlink.symlink_cnames
andSymlink.remove_symlink_cname
) to depend only in theDomain.domain
string instead of the wholeDomain
objectCurrently, we are depending on 1) but many errors are being generated in our sentry when the Domain is deleted: https://sentry.io/read-the-docs/readthedocs-org/issues/235601094/
The text was updated successfully, but these errors were encountered: