-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sentry keeps informing about crash in validate_version_metadata_task #1805
Comments
Link to the sentry issue: https://dandiarchive.sentry.io/issues/4782773513/?project=5266078&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=5 This happened because the version being validated got deleted after the validation function got called, but before we re-queried for it with select_for_update to lock it - https://github.com/dandi/dandi-archive/blob/master/dandiapi/api/services/metadata/__init__.py#L130-L136. Essentially, the version got deleted while it was being validated. This only happened once in staging, which makes sense as deleting versions is much more common there. |
Thanks for the analysis and explanation! But could code be fixed for that (e.g. if |
Yes I agree that makes sense to do - I opened #1808 to fix this. |
🚀 Issue was released in |
Issue
AttributeError dandiapi.api.tasks.validate_version_metadata_task
'NoneType' object has no attribute 'status'
recent one was
but initially there was
so might be worth checking that 7d3d994 . @mvandenburgh ?
The text was updated successfully, but these errors were encountered: