We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23c5f1a commit 09df9d8Copy full SHA for 09df9d8
1 file changed
ProcessMaker/Console/Commands/EvaluateCaseRetention.php
@@ -27,6 +27,16 @@ class EvaluateCaseRetention extends Command
27
*/
28
public function handle()
29
{
30
+ // Only run if case retention policy is enabled
31
+ $enabled = getenv('CASE_RETENTION_POLICY_ENABLED');
32
+ if (!$enabled) {
33
+ $this->info('Case retention policy is disabled');
34
+ $this->error('Skipping case retention evaluation');
35
+
36
+ return;
37
+ }
38
39
+ $this->info('Case retention policy is enabled');
40
$this->info('Evaluating and deleting cases past their retention period');
41
42
// Process all processes when retention policy is enabled
0 commit comments