From d538aaf7d5f59b2561602028cf29eeb94d6314f7 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 2 Aug 2024 12:02:47 +0200 Subject: [PATCH] set the lifetime higher --- application/config/migration.php | 2 +- system/libraries/Migration.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/config/migration.php b/application/config/migration.php index c19a65279..d0dbce0ab 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -49,7 +49,7 @@ $config['migration_path'] = APPPATH . 'migrations/'; $config['migration_lockfile'] = sys_get_temp_dir() . '/.migration_running'; // the maximum age of the lockfile in seconds -$config['migration_lf_maxage'] = 30; +$config['migration_lf_maxage'] = 300; /* End of file migration.php */ diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index b70ea530b..256748747 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php @@ -159,8 +159,8 @@ class CI_Migration { // If not set, set it $this->_migration_lockfile !== '' OR $this->_migration_lockfile = '/tmp/.migration_running'; - // selockfile maxage if not set in config file. Fallback is 60 seconds. - $this->_migration_lf_maxage !== '' OR $this->_migration_lf_maxage = 60; + // selockfile maxage if not set in config file. Fallback is 480 seconds. + $this->_migration_lf_maxage !== '' OR $this->_migration_lf_maxage = 480; // Load migration language $this->lang->load('migration');