mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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
|
continue
|
||||||
|
|
||||||
parents_task_status = statuses_by_id[parents_task["status_id"]]
|
parents_task_status = statuses_by_id[parents_task["status_id"]]
|
||||||
low_state_name = parents_task_status["state"]["name"].lower()
|
low_status_name = parents_task_status["name"].lower()
|
||||||
# Skip if task's status is in blocked state (e.g. Omitted)
|
# Skip if task's status name "Omitted"
|
||||||
if low_state_name != "blocked":
|
if low_status_name == "omitted":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
low_state_name = parents_task_status["state"]["name"].lower()
|
||||||
if low_state_name != "done":
|
if low_state_name != "done":
|
||||||
all_same_type_taks_done = False
|
all_same_type_taks_done = False
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue