*/
protected function schedule(Schedule $schedule)
{
- parent::schedule($schedule);
+ $schedule->command('queue:prune-failed --hours=24')->daily()->at('03:50');
+ $schedule->command('job:dispatch Maintenance\\\\CleanDownloads')->dailyAt('4:00');
+ // $schedule->command('backup:clean')->daily()->at('04:00');
+ // $schedule->command('backup:run')->daily()->at('05:00');
+
+ $schedule->command('ws:migrate --publications=v2 --documents=missing')->dailyAt('1:00');
- $schedule->command('cubist:magic:precache')->everyFiveMinutes();
$schedule->command('job:dispatch ProcessTotals')->everyTwoHours();
- $schedule->command('job:dispatch Maintenance\\CleanDownloads')->dailyAt('4:00');
- $schedule->command('fluidbook:farm:ping')->everyMinute();
$schedule->command('fluidbook:player:updatesources')->everyTwoHours();
- $schedule->command('ws:migrate --publications=v2 --documents=missing')->dailyAt('1:00');
+
+ $schedule->command('fluidbook:farm:ping')->everyMinute();
+ $schedule->command('cubist:magic:precache')->everyFiveMinutes();
}
/**
use hollodotme\FastCGI\Client;
use hollodotme\FastCGI\Requests\PostRequest;
use hollodotme\FastCGI\SocketConnections\NetworkSocket;
-use function App\Util\is_countable;
class Farm
{
error_log($log);
- return str_replace('/fluidbook/docs/','/protected/fluidbookpublication/docs/',$res);
+ return str_replace('/fluidbook/docs/', '/protected/fluidbookpublication/docs/', $res);
}
public static function ping($echo = true, $force = false)
file_put_contents(self::_serversCache(), json_encode($servers));
}
}
+
+
$actionsText = '';
$i = 0;
foreach ($actions as $label => $data) {
+ if (is_null($data)) {
+ $data = ['url' => '#nourl'];
+ }
if (is_string($data)) {
$data = ['url' => $data];
}
return $response->getTs();
}
} catch (\Exception $e) {
+ Log::critical($e);
Log::critical($e->getMessage() . ' // ' . $from . ' // ' . $channel . ' // ' . $text . ' // ' . $blocks);
}
return false;
C:\tools\cygwin\bin\ssh.exe -t root@toolbox.fluidbook.com 'docker exec -it -u toolbox fluidbook-toolbox /application/scripts/restartworkers'
exit
exit
+exit
+