Skip to content

Commit

Permalink
get dataset from db in runner
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzon committed Jan 8, 2025
1 parent 096aad9 commit ff664d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fractal_server/app/runner/v2/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,11 @@ def execute_tasks_v2(
# information

with next(get_sync_db()) as db:
dataset.history.extend(tmp_history)
dataset.filters = tmp_filters
dataset.images = tmp_images
db.add(dataset)
db_dataset = db.get(DatasetV2, dataset.id)
db_dataset.history.extend(tmp_history)
db_dataset.filters = tmp_filters
db_dataset.images = tmp_images
db.add(db_dataset)
db.commit()

# with open(workflow_dir_local / HISTORY_FILENAME, "w") as f:
Expand Down

0 comments on commit ff664d3

Please sign in to comment.