Skip to content

Commit

Permalink
[TASKS]: Add timeout on task.get_result action
Browse files Browse the repository at this point in the history
  • Loading branch information
amadolid committed Aug 3, 2023
1 parent 7e021cf commit 349332f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jaseci_core/jaseci/extens/act_lib/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@


@jaseci_action()
def get_result(task_id, wait, meta):
def get_result(task_id, wait=False, timeout=30):
"""
Get task result by task_id
"""

return JsOrc.svc("task").poke(TaskService).get_by_task_id(task_id, wait)
return JsOrc.svc("task").poke(TaskService).get_by_task_id(task_id, wait, timeout)

0 comments on commit 349332f

Please sign in to comment.