Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: executor to manage its own networks #98

Merged
merged 26 commits into from
Aug 29, 2024

Conversation

christyjacob4
Copy link
Contributor

No description provided.

Copy link
Member

@abnegate abnegate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the networks are being created lazily - the first injection (and injections after cleanup) will have to wait for the creation of all networks that don't exist, slowing down a cold-start. Might be better to do on server start when possible? Did we do any benchmarking?

app/http.php Outdated Show resolved Hide resolved
app/http.php Outdated
try {
$orchestration->remove($container->getId(), true);

$activeRuntimeId = $container->getName();

if (!$activeRuntimes->exists($activeRuntimeId)) {
if ($activeRuntimes->exists($activeRuntimeId)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we try to remove in any case? if it's an orphan function for example.

@@ -29,5 +29,5 @@ jobs:

- name: Run Tests
run: |
docker run --rm -v $PWD:/app --network openruntimes-runtimes -w /app phpswoole/swoole:4.8.12-php8.0-alpine sh -c \
docker run --rm -v $PWD:/app --network runtimes-1 -w /app phpswoole/swoole:4.8.12-php8.0-alpine sh -c \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not critical, Is it worth changing to phpswoole/swoole:5.1.2-php8.3-alpine to match the executor PHP version

app/http.php Outdated Show resolved Hide resolved
@christyjacob4 christyjacob4 merged commit eb4537c into 0.5.x Aug 29, 2024
3 checks passed
@christyjacob4 christyjacob4 deleted the feat-use-bridge-networks-0.5 branch August 29, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants