Skip to content

Commit

Permalink
fix: single component run functionality (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaktensTid authored Nov 19, 2024
1 parent 7d9d4aa commit d0a7587
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nolabs/infrastructure/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ NOLABS_REDIS_URL=redis://localhost:6379/0
NOLABS_CELERY_EAGER=False

# LOGGING
NOLABS_LOGGING_LEVEL=ERROR
NOLABS_LOGGING_LEVEL=INFO
NOLABS_STRUCTURED_LOGGING=True

# UVICORN
UVICORN_HOST=0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion nolabs/workflow/application/use_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ async def handle(self, request: StartWorkflowComponentRequest):
graph = Graph(experiment_id=request.experiment_id)

components = []
for component_data in ComponentData.objects(experiment_id=request.experiment_id):
for component_data in ComponentData.objects(experiment=request.experiment_id):
component = Component.restore(component_data)
components.append(component)

Expand Down

0 comments on commit d0a7587

Please sign in to comment.