Skip to content

Commit

Permalink
Update tasktable to show next steps in paused tasks (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
elstonayx committed Dec 15, 2021
1 parent c51eb72 commit 1ba58d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions orchestra/utils/task_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def tasks_assigned_to_worker(worker):
next_todo_title = None
next_todo_dict = {}
should_be_active = False
if state in ('returned', 'in_progress'):
if state in ('returned', 'in_progress', 'paused'):
# TODO(aditya): Temporarily we are filtering out todos
# with section values. Remove this comment once we
# figure out a long term logic.
Expand Down Expand Up @@ -622,8 +622,9 @@ def tasks_assigned_to_worker(worker):
)
)
should_be_active = (
(num_non_template_todos == 0)
or task_started)
state != 'paused' and
((num_non_template_todos == 0)
or task_started))
tasks_assigned.append({
'id': task_assignment.task.id,
'assignment_id': task_assignment.id,
Expand Down

0 comments on commit 1ba58d2

Please sign in to comment.