For this reason (timeout), cronjobs should not be invoked via HTTP.
You may better call a simple console script with “php filename.php” in crontab that starts the actual service script. So you don’t have to use the Slim router and dispatcher for it. This means that you need to implement your business logic within application services classes.