Skip to content

Commit cb2d554

Browse files
author
Kairo de Araujo
committed
Fix invalid task_status getting status reports
Fix the invalid UNKNOWN status. Correct initial status is PENDING. This issue causes HTTP 500 when requested the status endpoint. Signed-off-by: Kairo de Araujo <[email protected]>
1 parent a645222 commit cb2d554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tern_api/reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def status(task_id: str) -> TernAPIResponse:
154154
Args:
155155
task_id: the unique task ID
156156
"""
157-
data_response = DataResponse(id=task_id, status=task_status.UNKNOWN.value)
157+
data_response = DataResponse(id=task_id, status=task_status.PENDING.value)
158158

159159
try:
160160
if not tern_tasks.futures.done(task_id):

0 commit comments

Comments
 (0)