Skip to content

Commit

Permalink
fix: monkeypatch at program start
Browse files Browse the repository at this point in the history
  • Loading branch information
luccadibe committed Dec 10, 2024
1 parent 70374d0 commit 645deac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion backend/internal/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from backend.internal.kubernetes_orchestrator import KubernetesOrchestrator
from backend.internal.report import Reporter
from backend.internal.store import configure_output_path, write_dataframe, write_json_data
from backend.internal.loadgen import LoadGenerator
from backend.internal.locust_file_loadgenerator import LocustFileLoadgenerator
from backend.internal.utils import utc_timestamp
from backend.internal.errors import OxnException, OrchestrationException
Expand Down
3 changes: 3 additions & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from gevent import monkey
monkey.patch_all()

from typing import Dict, List, Optional
import logging
uvicorn_logger_error = logging.getLogger("uvicorn.error")
Expand Down
4 changes: 2 additions & 2 deletions backend/readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
run the docker compose:
```
docker compose -f docker-compose.yml up --build
docker compose -f docker-compose.yml up --build --remove-orphans
```

run the tests:
```
docker compose -f docker-compose.test.yml up --build
docker compose -f docker-compose.test.yml up --build --remove-orphans
```

0 comments on commit 645deac

Please sign in to comment.