]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/OpportunisticQM/README
Merge branch 'master' into social-master
[quix0rs-gnu-social.git] / plugins / OpportunisticQM / README
1 Generally the OpportunisticQM plugin will run if there's still execution 
2 time for 1 second since starting the Action processing. If you want to 
3 change this (such as disabling, 0 seconds, or maybe running bigger 
4 chunks, for like 4 seconds) you can do this, where 'n' is time in seconds.
5
6 addPlugin('OpportunisticQM', array('secs_per_action', n));
7
8 Add 'rel_to_pageload'=>false to the array if you want to run the queue 
9 for a certain amount of seconds _despite_ maybe already having run that 
10 long in the previous parts of Action processing.
11
12 Perhaps you want to start the queue handler remotely, using a machine capable 
13 of background processing (or locally, to avoid running PHP daemon processes), 
14 simply do an HTTP GET request to the route /main/runqueue of your GNU social. 
15 Setting secs_per_action to 0 in the plugin config will imply that you run 
16 all your queue handling by calling /main/runqueue (which runs as long as it 
17 can).
18
19 /main/runqueue will output "0" if it has finished processing, "1" if it 
20 should be called again to complete processing (because it shut down to avoid
21 to PHP's max_execution_time INI setting).
22
23 The key-required functionality is not throughly tested yet, so testing 
24 would be appreciated.