XF 2.1 Run cronjob with php cmd?

SeToY

Well-known member
Hello there,

I have a rather long running cron that I'd like to execute by hand periodically. Since it's running long it will inevitably run into php's max execution timeout.

Is there a way to trigger cron jobs manually via cmd? I've also seen this addon (here), but it entirely disables all other crons, which is not what I desire.

Or how can I run a long cronjob manually (max_execution_time is 300, but it already throws a HTTP500 after around a minute of running).

Thank you!
 
Last edited:
If you don't want to change the overall behavior, it sounds like you'd really need to develop something specifically to fit your requirements for this particular script (presumably triggering your code via the actual server cron system).
 
Back
Top Bottom