forked from protofire/rootstock-transaction-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
1,313 additions
and
307 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
""" | ||
Store gunicorn variables in this file, so they can be read by Django | ||
""" | ||
import os | ||
|
||
gunicorn_request_timeout = os.environ.get("WEB_WORKER_TIMEOUT", 60) | ||
gunicorn_worker_connections = os.environ.get("WEB_WORKER_CONNECTIONS", 1000) | ||
gunicorn_workers = os.environ.get("WEB_CONCURRENCY", 2) |
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
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 @@ | ||
import gevent | ||
from gunicorn.workers.ggevent import GeventWorker | ||
from psycogreen.gevent import patch_psycopg | ||
|
||
|
||
class MyGeventWorker(GeventWorker): | ||
def patch_psycopg2(self): | ||
patch_psycopg() | ||
self.log.info("Patched Psycopg2 for gevent") | ||
|
||
def patch(self): | ||
super().patch() | ||
self.log.info("Patched all for gevent") | ||
self.patch_psycopg2() | ||
|
||
def handle_request(self, listener_name, req, sock, addr): | ||
try: | ||
with gevent.Timeout(self.cfg.timeout): | ||
super().handle_request(listener_name, req, sock, addr) | ||
except gevent.Timeout: | ||
self.log.error("TimeoutError on %s", req.path) |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
-r requirements.txt | ||
coverage==7.2.7 | ||
django-stubs==4.2.1 | ||
coverage==7.3.1 | ||
django-stubs==4.2.4 | ||
django-test-migrations==1.3.0 | ||
factory-boy==3.2.1 | ||
faker==18.10.1 | ||
mypy==1.0.1 | ||
pytest==7.4.0 | ||
factory-boy==3.3.0 | ||
faker==19.6.1 | ||
mypy==1.5.1 | ||
pytest==7.4.2 | ||
pytest-celery==0.0.0 | ||
pytest-django==4.5.2 | ||
pytest-env==0.8.2 | ||
pytest-rerunfailures==11.1.2 | ||
pytest-env==1.0.1 | ||
pytest-rerunfailures==12.0 | ||
pytest-sugar==0.9.7 |
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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
boto3==1.26.151 | ||
boto3==1.28.44 | ||
cachetools==5.3.1 | ||
celery==5.2.7 | ||
django==4.2.2 | ||
django-cache-memoize==0.1.10 | ||
celery==5.3.4 | ||
django==4.2.4 | ||
django-cache-memoize==0.2.0 | ||
django-celery-beat==2.5.0 | ||
django-cors-headers==4.0.0 | ||
django-cors-headers==4.2.0 | ||
django-db-geventpool==4.0.1 | ||
django-debug-toolbar | ||
django-debug-toolbar-force | ||
django-environ==0.10.0 | ||
django-environ==0.11.2 | ||
django-extensions==3.2.3 | ||
django-filter==23.2 | ||
django-filter==23.3 | ||
django-imagekit==4.1.0 | ||
django-model-utils==4.3.1 | ||
django-redis==5.2.0 | ||
django-redis==5.3.0 | ||
django-s3-storage==0.14.0 | ||
django-timezone-field==5.1 | ||
django-timezone-field==6.0.1 | ||
djangorestframework==3.14.0 | ||
djangorestframework-camel-case==1.4.2 | ||
docutils==0.20.1 | ||
drf-yasg[validation]==1.21.5 | ||
drf-yasg[validation]==1.21.7 | ||
firebase-admin==6.2.0 | ||
flower==1.2.0 | ||
gunicorn[gevent]==20.1.0 | ||
hexbytes==0.2.3 | ||
flower==2.0.1 | ||
gunicorn[gevent]==21.2.0 | ||
hexbytes==0.3.1 | ||
hiredis==2.2.3 | ||
packaging>=21.0 | ||
pika==1.3.2 | ||
pillow==9.5.0 | ||
pillow==10.0.1 | ||
psycogreen==1.0.2 | ||
psycopg2==2.9.6 | ||
redis==4.5.5 | ||
psycopg2==2.9.7 | ||
redis==5.0.0 | ||
requests==2.31.0 | ||
git+https://github.com/protofire/safe-eth-py.git@rsk#egg=safe-eth-py | ||
#safe-eth-py[django]==5.5.0 | ||
web3==6.5.0 | ||
#safe-eth-py[django]==5.8.0 | ||
web3==6.9.0 |
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
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
Oops, something went wrong.