diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-05-04 18:06:43 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-05-04 18:06:43 +0300 |
| commit | 5263a07f61698eb26e0482129d66c5ab4be1c9c5 (patch) | |
| tree | 2b8b58cc141325a5bff5ebcefedafac52a626fbb /classes/Scheduler.php | |
| parent | fc059fc0fc85d0bfbc74f6984fc10e857d21df6c (diff) | |
record last cron expression (and stub owner_uid) used by scheduled task
Diffstat (limited to 'classes/Scheduler.php')
| -rw-r--r-- | classes/Scheduler.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/Scheduler.php b/classes/Scheduler.php index ce6a2f67d..77e858b56 100644 --- a/classes/Scheduler.php +++ b/classes/Scheduler.php @@ -117,6 +117,7 @@ class Scheduler { $task_record->last_run = Db::NOW(); $task_record->last_duration = $task_duration; $task_record->last_rc = $rc; + $task_record->last_cron_expression = $task['cron']->getExpression(); $task_record->save(); } else { @@ -127,6 +128,7 @@ class Scheduler { 'last_duration' => $task_duration, 'last_rc' => $rc, 'last_run' => Db::NOW(), + 'last_cron_expression' => $task['cron']->getExpression() ]); $task_record->save(); |