-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#136]: fix: always initialize tracer
- Loading branch information
Showing
7 changed files
with
155 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: '3' | ||
|
||
rpc: | ||
listen: tcp://127.0.0.1:6001 | ||
|
||
server: | ||
command: "php php_test_files/jobs/jobs_ok.php" | ||
on_init: | ||
command: "php php_test_files/jobs/on-init.php" | ||
exit_on_error: true | ||
relay: "pipes" | ||
|
||
|
||
logs: | ||
level: debug | ||
encoding: console | ||
mode: development | ||
|
||
jobs: | ||
# num logical cores by default | ||
num_pollers: 12 | ||
# 1mi by default | ||
pipeline_size: 100000 | ||
# worker pool configuration | ||
pool: | ||
num_workers: 10 | ||
allocate_timeout: 60s | ||
destroy_timeout: 60s | ||
|
||
# list of broker pipelines associated with endpoints | ||
pipelines: | ||
test-1-memory: | ||
driver: memory | ||
config: | ||
priority: 10 | ||
prefetch: 10000 | ||
|
||
|
||
# list of pipelines to be consumed by the server, keep empty if you want to start consuming manually | ||
consume: [ | ||
"test-1-memory", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
<?php | ||
|
||
/** | ||
* @var Goridge\RelayInterface $relay | ||
*/ | ||
|
||
use Spiral\RoadRunner\Jobs\Jobs; | ||
use Spiral\Goridge\RPC\RPC; | ||
use Spiral\RoadRunner\Environment; | ||
|
||
ini_set('display_errors', 'stderr'); | ||
require dirname(__DIR__) . "/vendor/autoload.php"; | ||
|
||
$jobs = new Jobs( | ||
RPC::create( | ||
Environment::fromGlobals()->getRPCAddress(), | ||
), | ||
); | ||
|
||
$jobs->count(); |