mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
it is not checked blocked state on parents tasks but if status name is omitted
This commit is contained in:
parent
ca165f6139
commit
0c3076c931
1 changed files with 4 additions and 3 deletions
|
|
@ -148,11 +148,12 @@ class NextTaskUpdate(BaseEvent):
|
|||
continue
|
||||
|
||||
parents_task_status = statuses_by_id[parents_task["status_id"]]
|
||||
low_state_name = parents_task_status["state"]["name"].lower()
|
||||
# Skip if task's status is in blocked state (e.g. Omitted)
|
||||
if low_state_name != "blocked":
|
||||
low_status_name = parents_task_status["name"].lower()
|
||||
# Skip if task's status name "Omitted"
|
||||
if low_status_name == "omitted":
|
||||
continue
|
||||
|
||||
low_state_name = parents_task_status["state"]["name"].lower()
|
||||
if low_state_name != "done":
|
||||
all_same_type_taks_done = False
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue