I need every night to run a task by Schedular (CRON). This task can take about 10 minutes (sometimes less, sometimes more).
On Heroku is set up the limit for every task/request only 30s. So my question is – will be my task finished correctly or will be cancelled after 30 seconds (because “usual” request is finished, only after 30s is displayed error into the browser, but I am not sure, how it is in the case of CRON)?
The job should complete because you’re not using an HTTP request as proxy to initiate the task.
Consider using a background job on a worker for this. Your periodic process would then just have to start the worker and it wouldn’t matter how long the process took.