{
$this->lock = \Illuminate\Support\Facades\Cache::lock('fluidbook_compile_' . $this->book_id, 1800);
- if ($this->lock->block(1800)) {
+ if ($this->lock->block(300)) {
try {
if (!$this->compositionCached()) {
$this->log('Preprocess images');
}
}
} else if ($this->action === 'install') {
+ echo 'Install on ' . json_encode($this->entry->install_online) . "\n";
$s = $this->entry->install_online;
$dest = Driver::cleanInstallDir($s['path']);
/** @var FluidbookExternalInstallServer $server */
if ($this->entry->hosting_loadbalancer) {
Download::dispatch($this->entry, $this->version, 'loadbalancer', $this->user, $this->_params);
}
+
} else if ($this->action === 'loadbalancer') {
$path = $this->_compileandpackage(false);
$dest = $this->entry->protected_path('fluidbookpublication/loadbalancer/' . $this->entry->id . '_' . $this->entry->hash . '/');
// }
if ($notify) {
+ echo 'Send notification : ' . $subject . "\n";
+ echo $text . "\n";
+ echo json_encode($actions) . "\n";
$this->sendNotification($subject, $text, $actions, $showTextIfNotEmail);
}
return $res;