1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

rename OPENRUNTIMES_INACTIVE_THRESHOLD to _APP_RUNTIMES_INACTIVE_THRESHOLD

This commit is contained in:
Bradley Schofield 2022-02-25 14:03:08 +00:00
parent 93efdbcae1
commit 1fa764d1f6
4 changed files with 4 additions and 4 deletions

2
.env
View file

@ -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

View file

@ -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 {

View file

@ -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"; ?>

View file

@ -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