Refine admin status and notification controls
This commit is contained in:
parent
4e4def843d
commit
5437c7a4c4
5 changed files with 15 additions and 9 deletions
|
|
@ -13,7 +13,7 @@ foreach ($dirs as $dir) {
|
|||
$state = is_file($stateFile) ? json_decode((string)file_get_contents($stateFile), true) : [];
|
||||
$status = is_array($state) ? (string)($state['status'] ?? '') : '';
|
||||
$locked = is_dir($lockDir);
|
||||
if ($locked || in_array($status, ['processing', 'stale'], true)) {
|
||||
if ($locked || $status === 'processing') {
|
||||
$started = '';
|
||||
if (is_file($lockDir . '/started_at')) $started = trim((string)file_get_contents($lockDir . '/started_at'));
|
||||
if ($started === '' && is_array($state)) $started = (string)($state['started_at'] ?? $state['updated_at'] ?? '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue