It should be possible to set a time limit on tasks, at which point the timer is automatically paused and an alert is displayed.
Activity
[-]Task Time Limits[/-][+]Task Time Limits/Focus Reminders[/+][-]Task Time Limits/Focus Reminders[/-][+]Task Time Limits[/+]