Newznab

From RARFORGE
Jump to: navigation, search

Postprocess script

This script only does postprocessing. By default update_releases.php post processes the last 100 releases. if you backfill or if your update_releases.php has more than 100 releases some may not process. This script is to be run in another shell and only does post processing on releases that have not been done yet. when there is nothing to to it looks like it is hung but if you have more releases the script continues. Another rational is that it allows update_releases to finish quicker because the number of post processing it does is changed to 1.

  • edit www/lib/postprocess.php
  public function processAll()
        {
-               $this->processAdditional();
+               //$this->processAdditional();
-               $numtoProcess = 100;
+               $numtoProcess = 1;
  • create misc/custom/justpostprocessing.php
<?php
define('FS_ROOT', realpath(dirname(__FILE__)));
require_once(FS_ROOT."/../../www/config.php");
require_once(FS_ROOT."/../../www/lib/postprocess.php");
 
$i=1;
while($i=1)
  {
    $postprocess = new PostProcess();
    $postprocess->processAdditional();
  }
?>
  • chmod 755 justpostprocessing.php
  • run that in a screen/tmux session
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox