Cronjob in batch mode?

In one of my XenForo-AddOns I implemented a cronjob, which runs more than one hour.
the sysadmin told me, that for technical reasons such a job has to run in batch mode.
any idea how this can be achieved?
 
Can you describe the problem in more detail.
Normally a XenForo cronjob runs as a web application , but according to my sysadmin there are some serious drawbacks when such a job runs for a long time. So the job has to run in batch mode.
 
If a cron job runs for an hour, it shouldn't be a cron job. Either break it into smaller, more frequent jobs, or have it running as a daemon properly.

If you insist on running it periodically through XenForo, you could always spin up a new process to do it. Something like...

Code:
exec('php your_file.php &');
 
Top Bottom