Task - Timeout
Timeout is a way to abort an action that didn't run as expected, typically a connection or a response that doesn't happen within a reasonable time interval.
The timeout value can be set both at Task and Job level.
Add/Edit Task > Timeout tab

Check Use timeout and specify the time in hours, minutes and seconds. When the timeout is reached, all processes related to the current Task will be terminated.