From 9282fa2b20fed032df7bd981ca1135758a3a3077 Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Tue, 30 Jul 2024 14:09:13 +0600 Subject: [PATCH] pkp/pkp-lib#9678 Added app level scheduler --- classes/scheduler/Scheduler.php | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 classes/scheduler/Scheduler.php diff --git a/classes/scheduler/Scheduler.php b/classes/scheduler/Scheduler.php new file mode 100644 index 00000000000..57e6f55fcf6 --- /dev/null +++ b/classes/scheduler/Scheduler.php @@ -0,0 +1,36 @@ +schedule + ->call(fn () => (new UsageStatsLoader([]))->execute()) + ->daily() + ->name(UsageStatsLoader::class) + ->withoutOverlapping(); + } +}