feat: optional instant_analysis for interactive resource previews#409
Draft
bolinocroustibat wants to merge 5 commits intomainfrom
Draft
feat: optional instant_analysis for interactive resource previews#409bolinocroustibat wants to merge 5 commits intomainfrom
bolinocroustibat wants to merge 5 commits intomainfrom
Conversation
When udata sets instant_analysis on resource create/update, Hydra stores it on catalog, orders batch selection ahead of other priority rows, and uses the high RQ tier for crawl/analysis. Cleared after preprocess like priority. Backward compatible (default false, unknown JSON keys ignored). Closes #386 Made-with: Cursor
Schedule check_resource after POST /api/resources when instant_analysis is true; document udata coordination and CLI in README (#386). Made-with: Cursor
0ac6cd8 to
fc18df6
Compare
ThibaudDauce
reviewed
Apr 6, 2026
|
|
||
| try: | ||
| resource = await Resource.get(resource_id) | ||
| if resource is None or resource["status"] is not None: |
Contributor
There was a problem hiding this comment.
Do we need to lock the ressource in the immediate check too? The crawler could pick up the ressource during the immediate check run, no?
Contributor
|
Not sure what we prefer between this and #348 |
Made-with: Cursor
Contributor
Author
Oh I forgot about that, indeed |
Made-with: Cursor
Avoid batch selecting the same resource while instant_analysis runs. Clear stuck CRAWLING_URL if check_resource fails unexpectedly. Made-with: Cursor
Contributor
|
I think we should discuss our ideal approach before merging this indeed. I'm turning this into draft for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #386
This adds an optional, backward-compatible
instant_analysisboolean on the resource POST payload.When true, Hydra persists it on
catalog, prefers those rows in batch ordering, enqueues crawl/analysis on thehighqueue, and clears the flag withpriorityafter preprocess—matching the existingcreate_checkpath without promoting every webhook update.