rename OPENRUNTIMES_INACTIVE_THRESHOLD to _APP_RUNTIMES_INACTIVE_THRESHOLD
This commit is contained in:
parent
93efdbcae1
commit
1fa764d1f6
2
.env
2
.env
|
@ -50,4 +50,4 @@ _APP_MAINTENANCE_RETENTION_AUDIT=1209600
|
|||
_APP_USAGE_STATS=enabled
|
||||
_APP_LOGGING_PROVIDER=
|
||||
_APP_LOGGING_CONFIG=
|
||||
OPENRUNTIMES_INACTIVE_THRESHOLD=60
|
||||
_APP_RUNTIMES_INACTIVE_THRESHOLD=60
|
|
@ -653,7 +653,7 @@ $http->on('start', function ($http) {
|
|||
Timer::tick(MAINTENANCE_INTERVAL * 1000, function () use ($orchestrationPool, $activeRuntimes) {
|
||||
Console::warning("Running maintenance task ...");
|
||||
foreach ($activeRuntimes as $runtime) {
|
||||
$inactiveThreshold = \time() - App::getEnv('OPENRUNTIMES_INACTIVE_THRESHOLD', 60);
|
||||
$inactiveThreshold = \time() - App::getEnv('_APP_RUNTIMES_INACTIVE_THRESHOLD', 60);
|
||||
if ($runtime['updated'] < $inactiveThreshold) {
|
||||
go(function () use ($runtime, $orchestrationPool, $activeRuntimes) {
|
||||
try {
|
||||
|
|
|
@ -187,7 +187,7 @@ services:
|
|||
- _APP_LOGGING_CONFIG
|
||||
- DOCKERHUB_PULL_USERNAME
|
||||
- DOCKERHUB_PULL_PASSWORD
|
||||
- OPENRUNTIMES_INACTIVE_THRESHOLD
|
||||
- _APP_RUNTIMES_INACTIVE_THRESHOLD
|
||||
|
||||
appwrite-worker-database:
|
||||
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
||||
|
|
|
@ -432,7 +432,7 @@ services:
|
|||
- _APP_LOGGING_CONFIG
|
||||
- DOCKERHUB_PULL_USERNAME
|
||||
- DOCKERHUB_PULL_PASSWORD
|
||||
- OPENRUNTIMES_INACTIVE_THRESHOLD
|
||||
- _APP_RUNTIMES_INACTIVE_THRESHOLD
|
||||
|
||||
appwrite-worker-mails:
|
||||
entrypoint: worker-mails
|
||||
|
|
Loading…
Reference in a new issue