You should be able to go to Site administration > Server > Tasks > Task processing and set the following settings:
- Scheduled task runner lifetime
- Ad hoc task runner lifetime
To a longer time. But the default for scheduled task length is not 5 minutes, but 30 minutes. Maybe some other admin changed the default?