Skip to content
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

Move asset validation to a scheduled task #1634

Merged
merged 6 commits into from
Jul 18, 2023
Merged

Move asset validation to a scheduled task #1634

merged 6 commits into from
Jul 18, 2023

Conversation

danlamanna
Copy link
Contributor

@danlamanna danlamanna commented Jun 22, 2023

Fixes #1479

This addresses a few potential race conditions and uses a scheduled task for asset validation instead of the previous flow where it could be triggered on asset creation or by completion of a sha256.

Copy link
Member

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really liking the change, just have a few questions

dandiapi/api/tasks/scheduled.py Show resolved Hide resolved
dandiapi/api/tasks/__init__.py Show resolved Hide resolved
dandiapi/api/services/metadata/__init__.py Outdated Show resolved Hide resolved
dandiapi/api/services/metadata/__init__.py Show resolved Hide resolved
Copy link
Member

@waxlamp waxlamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall.

@danlamanna danlamanna added patch Increment the patch version when merged release Create a release when this pr is merged labels Jul 13, 2023
@danlamanna danlamanna merged commit 0961f55 into master Jul 18, 2023
@danlamanna danlamanna deleted the stuck-assets branch July 18, 2023 17:48
@dandibot
Copy link
Member

🚀 PR was released in v0.3.48 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assets stuck in Pending validation state
5 participants