There are tasks whose duration depends on other tasks.
For instance, on a project site, it may be necessary to carry out control by a third-party organization, whose services can be quite expensive. The control should start strictly at the beginning of one of the tasks and end strictly at the end of another.
The duration of the task cannot be determined in advance, as when the durations of the controlled tasks change, its duration should also change.
For planning such tasks, professionals use a technical trick called a “hammock” task. The “hammock” is hung between two points - the beginning or end of one task and another task using a special insert with a link. Suppose we need to hang a hammock from the beginning of Task 1 to the end of Task 3: