We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc4cad commit a82078bCopy full SHA for a82078b
ami/ml/orchestration/pipelines.py
@@ -13,11 +13,12 @@ def get_default_pipeline(project: Project) -> Pipeline | None:
13
14
@TODO use project settings to determine the default pipeline
15
"""
16
- return (
+ default_pipeline = project.default_processing_pipeline or (
17
Pipeline.objects.all()
18
.enabled(project=project) # type: ignore
19
.online(project=project) # type: ignore
20
.annotate(num_categories=models.Count("algorithms__category_map__labels"))
21
.order_by("-num_categories", "-created_at")
22
.first()
23
)
24
+ return default_pipeline
0 commit comments