Handling case when there is a task with huge duration