gnu-social/scripts
Mikael Nordfeldth 0cd93c2761 Cron plugin added and now default queue handler
Generally the Cron plugin will run if there's still execution time for
1 second since starting the Action processing. If you want to change
this (such as disabling, 0 seconds, or maybe running bigger chunks,
for like 4 seconds) you can do this, where 'n' is time in seconds.

   addPlugin('Cron', array('secs_per_action', n));

Add 'rel_to_pageload'=>false to the array if you want to run the queue
for a certain amount of seconds _despite_ maybe already having run that
long in the previous parts of Action processing.

Perhaps you want to run the cron script remotely, using a machine capable
of background processing (or locally, to avoid running daemon processes),
simply do an HTTP GET request to the route /main/cron of your GNU social.
Setting secs_per_action to 0 in the plugin config will imply that you run
all your queue handling by calling /main/cron (which runs as long as it can).

/main/cron will output "0" if it has finished processing, "1" if it should
be called again to complete processing (because it ran out of time due to
PHP's max_execution_time INI setting).

The Cron plugin also runs events as close to hourly, daily and weekly
as you get, based on the opportunistic method of running whenever a user
visits the site. This means of course that the cron events should be as
fast as possible, not only to avoid delaying page load for users but
also to minimize the risk of running into PHP's max_execution_time. One
suggestion is to only use the events to add new queue items for later processing.

These events are called CronHourly, CronDaily, CronWeekly - however there
is no guarantee that all events will execute, so some kind of failsafe,
transaction-ish method must be implemented in the future.
2013-11-19 14:13:33 +01:00
..
allsites.php add options to show sites with/without a tag 2011-06-01 10:21:03 -04:00
apidocs.config minor fixes and cleanups in the scripts directory 2013-09-18 00:25:11 +02:00
backupuser.php Squashed commit of the following: 2013-06-29 07:52:09 -04:00
checkschema.php Option to pre-load a plugin with checkschema script 2011-05-04 21:05:25 -07:00
clear_jabber.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
clearcache.php common_cache_key() -> Cache::key() 2010-09-06 10:07:43 -04:00
command.php Implemented WebFinger and replaced our XRD with PEAR XML_XRD 2013-09-30 22:04:52 +02:00
commandline.inc IMPORTANT: 'GNUSOCIAL' defined, or daemons wouldn't work 2013-09-23 22:10:26 +02:00
console.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
createsim.php Group discovery from text functions polished 2013-10-29 13:40:14 +01:00
delete_status_network.sh Fixes for delete_status_network.sh: 2010-11-22 11:10:10 -08:00
deletegroup.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
deleteuser.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
docgen.php Using GNUSOCIAL_VERSION instead of STATUSNET_VERSION 2013-11-01 13:51:41 +01:00
doxygen.tmpl minor fixes and cleanups in the scripts directory 2013-09-18 00:25:11 +02:00
dumpschema.php fix notices in dumpschema 2010-10-29 15:11:41 -07:00
fixup_deletions.php fixup_deletions.php script to look for notices posted by now-deleted profiles and remove them. 2010-03-23 17:24:01 -07:00
fixup_files.php Add forgotten scripts/fixup_files.php to clean up "the h bug" 2010-03-11 11:52:19 -08:00
fixup_hashtags.php Making sure scripts and tests check for GNUSOCIAL defined (instead of STATUSNET) 2013-09-28 15:20:10 +02:00
fixup_replies.php Making sure scripts and tests check for GNUSOCIAL defined (instead of STATUSNET) 2013-09-28 15:20:10 +02:00
flushrouter.php fix flushrouter.php -- tried to call Cache::delete statically 2011-03-16 15:01:58 -07:00
flushsite.php a script to flush site 2010-03-09 10:55:48 -05:00
getpiddir.php Revert "Open tags should have closing tags" 2009-10-08 11:41:39 -04:00
getvaliddaemons.php Cron plugin added and now default queue handler 2013-11-19 14:13:33 +01:00
gnusocialversion.php Using GNUSOCIAL_VERSION instead of STATUSNET_VERSION 2013-11-01 13:51:41 +01:00
handlequeued.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
imdaemon.php Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 1.0.x 2010-03-22 13:56:16 -07:00
importtwitteratom.php Always specify UTF-8 targt charset for html_entity_decode(); default is 8-bit ISO-8859-1 which causes things to break when we later pass them through things that expect to work with UTF-8. For instance, running through preg_replace() with the /u option results in NULL, leading to problems with OStatus and SubMirror generating their plaintext versions and doing length-cropping. 2010-09-30 11:29:31 -07:00
install_cli.php Added SSL option to web and cli installers 2013-08-12 13:08:14 +02:00
joingroup.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
leavegroup.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
maildaemon.php Add an IMAP daemon so StatusNet can process incoming user posts via catch-all mailbox (in addition to the pre-existing script alias method) 2010-01-08 18:52:43 -05:00
make-release.php Using GNUSOCIAL_VERSION instead of STATUSNET_VERSION 2013-11-01 13:51:41 +01:00
makegroupadmin.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
move_status_network.sh Script to move a statusnetwork from one db server to another 2011-10-16 04:44:08 -04:00
moveuser.php Add a scary 'experimental feture' warning & are-you-sure prompt on moveuser.php 2011-01-19 15:13:46 -08:00
queuectl.php Control channel for queue daemons to request graceful shutdown, restart, or update to listen to a newly added or reconfigured site. 2010-01-26 11:49:49 -08:00
queuedaemon.php Detect when queuedaemon/xmppdaemon parent processes die and kill the child processes. 2010-03-10 11:54:00 -08:00
registeruser.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
reportsnapshot.php Revert "Open tags should have closing tags" 2009-10-08 11:41:39 -04:00
restoreuser.php Make restoreuser use new FeedImporter queue handler 2010-12-17 16:27:20 -05:00
sendemail.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
sessiongc.php Revert "Open tags should have closing tags" 2009-10-08 11:41:39 -04:00
setconfig.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
setpassword.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
settag.php Success exit from settag.php if desired state already exists 2011-10-24 20:13:10 -04:00
setup_status_network.sh fix typo in the comment (for better copy & pasting) 2010-09-09 13:14:52 -04:00
setup.cfg.sample allow setting some initial tags on a new network 2011-06-01 10:53:46 -04:00
showcache.php common_cache_key() -> Cache::key() 2010-09-06 10:07:43 -04:00
showplugins.php Comment and typing improvements 2013-11-19 13:29:26 +01:00
showtable.php statusize schema-related modules 2009-09-23 09:20:04 -04:00
startdaemons.sh minor fixes and cleanups in the scripts directory 2013-09-18 00:25:11 +02:00
stopdaemons.sh Squashed commit of the following: 2012-07-09 09:43:40 -04:00
strip_geo.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
uncache_users.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
update_po_templates.php Add the root index.php to gettext .pot template file generation; some error messages and such in there weren't making it into the TranslateWiki.net database. 2011-04-03 15:22:11 -07:00
update_translations.php Making sure scripts and tests check for GNUSOCIAL defined (instead of STATUSNET) 2013-09-28 15:20:10 +02:00
updatelocation.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
updateurls.php Removed legacy OMB. Use OStatus for remote profiles. 2013-10-28 16:22:09 +01:00
upgrade.php Add support (and upgrade path) for group profiles 2013-10-15 11:12:50 +02:00
useremail.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
userrole.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00