Repository navigation
Feature/create dataset and project - #1259
Merged
Merged
Conversation
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.
Description
This PR implements the backend engine required to automate the end-to-end Dataset and Project creation pipeline, streamlining data ingestion and intelligent project task assignment.
Key Changes
create_projects_for_dataset_category): The project creation engine now automatically limits task assignments to predefined batch capacities. For under-capacity batches, it identifies the best existing project to inherit the tasks and returns its ID/title to the frontend.pull_pipeline_project_items(POST/data/instances/pull_pipeline_project_items/) and its corresponding utilitypull_unassigned_items_into_project. This allows the automated flow to gracefully handle edge cases by pulling straggling unassigned items into an existing project.CONN_MAX_AGE = 60insettings.pyto reuse DB connections across requests. This drastically reduces connection latency (from ~1.5s down to ~0.2s) which is critical for the numerous API calls made during the automated pipeline execution.Motivation and Context
To achieve a fully automated dataset-to-project creation flow, the backend needed to handle task batching dynamically and provide the frontend with hooks to resolve under-capacity batches. The DB connection optimization is also critical to ensure the automated pipeline runs smoothly without timing out on connection handshakes.
Type of Change