mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 17:12:10 +01:00
13 lines
299 B
PHP
13 lines
299 B
PHP
<?php
|
|
|
|
require_once __DIR__.'/../_executor.php';
|
|
|
|
return function () {
|
|
$taskCount = $_GET['count'] ?? 0;
|
|
$workerName = $_GET['worker'] ?? '';
|
|
for ($i = 0; $i < $taskCount; $i++) {
|
|
frankenphp_send_request("task$i", $workerName);
|
|
}
|
|
echo "dispatched $taskCount tasks\n";
|
|
};
|