mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 14:14:52 +00:00
chore: Update UpdateCoolifyJob timeout to 10 minutes
This commit is contained in:
1 parent
961ba49d89
commit
af41ed26ba
1 file changed
+2
-7
@@ -17,18 +17,13 @@ class UpdateCoolifyJob implements ShouldBeEncrypted, ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public $timeout = 3600; // 1 hour timeout
|
||||
public $timeout = 600;
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
try {
|
||||
$settings = InstanceSettings::get();
|
||||
if (! $settings->is_auto_update_enabled) {
|
||||
Log::info('Auto-update is disabled. Skipping update check.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
CheckForUpdatesJob::dispatchSync();
|
||||
if (! $settings->new_version_available) {
|
||||
Log::info('No new version available. Skipping update.');
|
||||
|
||||
|
||||
Reference in new issue
Block a user