From 801f0d45d734c69ec96e9bbbc33a3f63b0879c22 Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 15 Mar 2025 20:14:23 +0000 Subject: delay processing of received simple pushes --- routes/push.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/push.php b/routes/push.php index d74d973..344412c 100644 --- a/routes/push.php +++ b/routes/push.php @@ -70,6 +70,7 @@ Router::getInstance()->mount('/push/simple', function (array $args) { sleep(5); // and only add the job if the client actually waited for the delay time if (!connection_aborted()) { - (new ProcessIncomingPush($obj))->submit(); + // also wait a minute before processing the push + (new ProcessIncomingPush($obj))->submitDelayed(60); } }); \ No newline at end of file -- cgit v1.3