Skip to content

Commit

Permalink
mf
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Dec 4, 2024
1 parent 2afc21f commit bcdd449
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/src/tira_app/endpoints/v1/_anonymous.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from ... import model as modeldb
from ... import tira_model as model
from ...checks import check_permissions, check_resources_exist
from ..vm_api import run_eval


@api_view(["GET"])
Expand Down Expand Up @@ -95,8 +96,8 @@ def chunks(self):
return [all_bytes]

new_run = model.model.add_uploaded_run(task_id, vm_id, dataset_id, body["upload_group"], MockedResponse())
if model.model.git_pipeline_is_enabled_for_task(task_id, cache):
model.run_eval(request=request, vm_id=vm_id, dataset_id=dataset_id, run_id=new_run["run"]["run_id"])
if model.git_pipeline_is_enabled_for_task(task_id, cache):
run_eval(vm_id=vm_id, dataset_id=dataset_id, run_id=new_run["run"]["run_id"])

return Response({"upload_group": body["upload_group"], "status": "0"})

Expand Down

0 comments on commit bcdd449

Please sign in to comment.