Skip to content

Commit

Permalink
fix: status
Browse files Browse the repository at this point in the history
  • Loading branch information
ispirtraian committed Apr 22, 2024
1 parent a34c955 commit 5560957
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/serving/serving_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def appmon_callback(self):
result=json.dumps(result),
status=STATUS_FINISHED
)

#TODO improve
self.postgres_update_data(
table_name="jobs",
identifier={"uuid":jobid},
Expand Down Expand Up @@ -356,6 +358,7 @@ def _predict_job (self, model_type: str, input, params:dict = None):
if result is None:
try:
workername = workername if tndx == 0 else None
status = status if tndx == 0 else STATUS_CREATED
self.postgres_insert_data(
"tasks",
uuid = taskid,
Expand Down

0 comments on commit 5560957

Please sign in to comment.