diff options
| author | winter | 2025-03-15 20:14:23 +0000 |
|---|---|---|
| committer | winter | 2025-03-15 20:14:23 +0000 |
| commit | 801f0d45d734c69ec96e9bbbc33a3f63b0879c22 (patch) | |
| tree | 233c1f41b63d47c31a66d5ce46aad76becfeb34e /routes | |
| parent | e0dfe3d562e1d4cb1429480c725c72974adb1f20 (diff) | |
delay processing of received simple pushes
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/push.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
