Recently I'm trying to try the task management API. I have some places confused a little bit, so hope I can get some ideas from you.
What's the difference between .setTaskId() and .setParentTaskId()?
I'm assuming if I only setTaskId, only the child task will be cancelled. If I setParentTaskId, all the children tasks will be cancelled too.
Related to 1), is it possible that one task has parent and also has grandParent? If so, what's the behavior for canceling parent task?
For example I have Task A. Task A has child Task B and Task B has child Task C: A -> B -> C
If I send a CancelTasksRequest with parentId set to B, will B and C get cancelled and A still alive?