From f7296d80b241734a655de3fcaf8ffb1959d92192 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 30 Apr 2025 12:27:18 +1200 Subject: [PATCH] Fix function schedule sleep --- composer.lock | 24 +++++++++---------- .../Platform/Tasks/ScheduleFunctions.php | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/composer.lock b/composer.lock index fbe5efda36..573c822296 100644 --- a/composer.lock +++ b/composer.lock @@ -3498,16 +3498,16 @@ }, { "name": "utopia-php/database", - "version": "0.66.1", + "version": "0.66.2", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "155bc1c0ec68e0224661b1e587e01c6451026031" + "reference": "944d1979c4ba572c746cad957fe34aead338ee34" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/155bc1c0ec68e0224661b1e587e01c6451026031", - "reference": "155bc1c0ec68e0224661b1e587e01c6451026031", + "url": "https://api.github.com/repos/utopia-php/database/zipball/944d1979c4ba572c746cad957fe34aead338ee34", + "reference": "944d1979c4ba572c746cad957fe34aead338ee34", "shasum": "" }, "require": { @@ -3548,9 +3548,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/0.66.1" + "source": "https://github.com/utopia-php/database/tree/0.66.2" }, - "time": "2025-04-17T07:23:15+00:00" + "time": "2025-04-29T23:35:39+00:00" }, { "name": "utopia-php/domains", @@ -5233,16 +5233,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.13.0", + "version": "1.13.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "024473a478be9df5fdaca2c793f2232fe788e414" + "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/024473a478be9df5fdaca2c793f2232fe788e414", - "reference": "024473a478be9df5fdaca2c793f2232fe788e414", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/1720ddd719e16cf0db4eb1c6eca108031636d46c", + "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c", "shasum": "" }, "require": { @@ -5281,7 +5281,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.1" }, "funding": [ { @@ -5289,7 +5289,7 @@ "type": "tidelift" } ], - "time": "2025-02-12T12:17:51+00:00" + "time": "2025-04-29T12:36:36+00:00" }, { "name": "nikic/php-parser", diff --git a/src/Appwrite/Platform/Tasks/ScheduleFunctions.php b/src/Appwrite/Platform/Tasks/ScheduleFunctions.php index 641186fdf3..11072170d7 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleFunctions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleFunctions.php @@ -72,7 +72,7 @@ class ScheduleFunctions extends ScheduleBase foreach ($delayedExecutions as $delay => $scheduleKeys) { \go(function () use ($delay, $scheduleKeys, $pools, $dbForPlatform) { - \Co::sleep($delay); // in seconds + \sleep($delay); // in seconds foreach ($scheduleKeys as $scheduleKey) { // Ensure schedule was not deleted