Skip to content

Commit

Permalink
Finalization Fix (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
czaloom authored Aug 2, 2024
1 parent b091f55 commit de3f327
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/valor_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,7 @@ def finalize_dataset(
"""
try:
crud.finalize(
db=db, dataset_name=dataset_name, task_handler=background_tasks
)
crud.finalize(db=db, dataset_name=dataset_name, task_handler=None)
except Exception as e:
raise exceptions.create_http_error(e)

Expand Down Expand Up @@ -1280,7 +1278,7 @@ def finalize_inferences(
db=db,
model_name=model_name,
dataset_name=dataset_name,
task_handler=background_tasks,
task_handler=None,
)
except Exception as e:
raise exceptions.create_http_error(e)
Expand Down

0 comments on commit de3f327

Please sign in to comment.