From f673b005a81c48ea5afb10ee621ec4ee3fbeea5a Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Thu, 10 Jul 2025 12:37:49 +0530 Subject: [PATCH] Improve comment --- src/Appwrite/Platform/Tasks/ScheduleExecutions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php index f4f6a4a737..7d4ac70091 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php @@ -64,11 +64,10 @@ class ScheduleExecutions extends ScheduleBase \go(function () use ($queueForFunctions, $schedule, $scheduledAt, $delay, $data, $dbForPlatform) { Co::sleep($delay); - // Calculate actual delay and execution time for late executions $executedAt = new \DateTime(); $actualDelay = $executedAt->getTimestamp() - $scheduledAt->getTimestamp(); - // Prepare headers to inform about late execution + // Add headers for delayed executions $headers = $data['headers'] ?? []; if ($actualDelay > 0) { $headers['x-appwrite-schedule-delay'] = (string)$actualDelay;