chore: Update UpdateCoolifyJob timeout to 10 minutes
This commit is contained in:
@@ -17,18 +17,13 @@ class UpdateCoolifyJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
public $timeout = 3600; // 1 hour timeout
|
public $timeout = 600;
|
||||||
|
|
||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$settings = InstanceSettings::get();
|
$settings = InstanceSettings::get();
|
||||||
if (! $settings->is_auto_update_enabled) {
|
CheckForUpdatesJob::dispatchSync();
|
||||||
Log::info('Auto-update is disabled. Skipping update check.');
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! $settings->new_version_available) {
|
if (! $settings->new_version_available) {
|
||||||
Log::info('No new version available. Skipping update.');
|
Log::info('No new version available. Skipping update.');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user