Skip to content

Commit 842aa27

Browse files
committed
fix(TaskProcessing): Increase MAX_TASK_AGE to 6 months
to comply with the EU AI act
1 parent c609dd2 commit 842aa27

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/TaskProcessing/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Manager implements IManager {
7373
public const LEGACY_PREFIX_TEXTTOIMAGE = 'legacy:TextToImage:';
7474
public const LEGACY_PREFIX_SPEECHTOTEXT = 'legacy:SpeechToText:';
7575

76-
public const TASK_TYPES_CACHE_KEY = 'available_task_types_v3';
76+
private const TASK_TYPES_CACHE_KEY = 'available_task_types_v3';
7777

7878
/** @var list<IProvider>|null */
7979
private ?array $providers = null;

lib/private/TaskProcessing/RemoveOldTasksBackgroundJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Psr\Log\LoggerInterface;
1717

1818
class RemoveOldTasksBackgroundJob extends TimedJob {
19-
public const MAX_TASK_AGE_SECONDS = 60 * 60 * 24 * 30 * 4; // 4 months
19+
public const MAX_TASK_AGE_SECONDS = 60 * 60 * 24 * 31 * 6; // 4 months
2020
private \OCP\Files\IAppData $appData;
2121

2222
public function __construct(

0 commit comments

Comments
 (0)