diff options
author | friendica <info@friendica.com> | 2015-03-04 01:26:02 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-04 01:26:02 -0800 |
commit | 64e7c8b20f241f7f63ad78c23fdf872f3422d561 (patch) | |
tree | 4c74da4f07fc8201de69bd6b8c820e3f5a51f4d5 /include/queue.php | |
parent | df90677f900a1a6ed496628545a8e109700e168b (diff) | |
download | volse-hubzilla-64e7c8b20f241f7f63ad78c23fdf872f3422d561.tar.gz volse-hubzilla-64e7c8b20f241f7f63ad78c23fdf872f3422d561.tar.bz2 volse-hubzilla-64e7c8b20f241f7f63ad78c23fdf872f3422d561.zip |
notes on what's needed to fix the queueing algorithms.
Diffstat (limited to 'include/queue.php')
-rw-r--r-- | include/queue.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/queue.php b/include/queue.php index b6a540ef9..8e97b4a1a 100644 --- a/include/queue.php +++ b/include/queue.php @@ -39,6 +39,14 @@ function queue_run($argv, $argc){ // so that we don't start off a thousand deliveries for a couple of dead hubs. // The zot driver will deliver everything destined for a single hub once contact is made (*if* contact is made). // Other drivers will have to do something different here and may need their own query. + + // Note: this requires some tweaking as new posts to long dead hubs once a day will keep them in the + // "every 15 minutes" category. We probably need to prioritise them when inserted into the queue + // or just prior to this query based on recent and long-term delivery history. If we have good reason to believe + // the site is permanently down, there's no reason to attempt delivery at all, or at most not more than once + // or twice a day. + + if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { $prefix = 'DISTINCT ON (outq_posturl)'; $suffix = 'ORDER BY outq_posturl'; |