You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cookbook/tasks/task_dependencies.rst
+37-3Lines changed: 37 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -65,10 +65,16 @@ Create A Dependency
65
65
66
66
Tasks each have an ``upstream_tasks`` field and a ``downstream_tasks`` field. Each field is a
67
67
list ``[]`` type and can contain zero, one, or multiple Task entity dictionaries representing the
68
-
dependent Tasks. Here is how to create a dependency between our "Layout" and "Anim" Tasks::
68
+
dependent Tasks.
69
+
There are four dependency types from which you can choose: ``finish-to-start-next-day``, ``start-to-finish-next-day``, ``start-to-start``, ``finish-to-finish``.
70
+
If no dependency type is provided the default ``finish-to-start-next-day`` will be used.
71
+
Here is how to create a dependency between our "Layout" and "Anm" Tasks::
69
72
70
-
# make 'Layout' and upstream Task to 'Anm'. (aka, make 'Anm' dependent on 'Layout')
71
-
result = sg.update('Task', 557, {'upstream_tasks':[{'type':'Task','id':556}]})
73
+
# make 'Layout' an upstream Task to 'Anm'. (aka, make 'Anm' dependent on 'Layout') with finish-to-start-next-day dependency type
0 commit comments