Configurable job run trigger
The job system is a crucial cog in the XenForo machine to ensure that certain tasks can be run on a regular or as-scheduled basis, or split into multiple smaller chunks to be completed over a period of time.
Traditionally the jobs require some form of activity on your site to kick these processes off asynchronously in the background. Little do your anonymous guests know how crucial their activity is to the normal running or your site!
But what if there are situations where you don't always have activity on your site? It might be a private site that is in development, you might get very few visitors at certain times of the day, or you might simply want to take direct control of the process and execute it yourself.
Either way, this new option in XF 2.2 aims to help:
[ATTACH=full]228516[/ATTACH]
By default we will continue to trigger jobs based on site activity, but if needed you can switch to a server-based trigger. This involves periodically executing a new CLI command xf:run-jobs
.
Note: You will be responsible for putting in place some sort of config for crontab
, cron.d
, system.d
or other task running process to ensure the command is run as expected.