Spaces:
Sleeping
Sleeping
Commit
·
b902a4e
1
Parent(s):
75c7d61
removed optimizations (didn't work)
Browse files
evolutiontransformer/api.py
CHANGED
|
@@ -21,11 +21,6 @@ celery_app = Celery(
|
|
| 21 |
broker=REDIS_URL,
|
| 22 |
backend=REDIS_URL,
|
| 23 |
)
|
| 24 |
-
celery_app.conf.update(
|
| 25 |
-
broker_transport_options={"poll_interval": 5},
|
| 26 |
-
worker_send_task_events=False,
|
| 27 |
-
task_send_sent_event=False,
|
| 28 |
-
)
|
| 29 |
|
| 30 |
app = FastAPI()
|
| 31 |
|
|
|
|
| 21 |
broker=REDIS_URL,
|
| 22 |
backend=REDIS_URL,
|
| 23 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
app = FastAPI()
|
| 26 |
|
evolutiontransformer/worker.py
CHANGED
|
@@ -35,12 +35,6 @@ celery_app = Celery(
|
|
| 35 |
backend=REDIS_URL,
|
| 36 |
)
|
| 37 |
|
| 38 |
-
celery_app.conf.update(
|
| 39 |
-
broker_transport_options={"poll_interval": 5},
|
| 40 |
-
worker_send_task_events=False,
|
| 41 |
-
task_send_sent_event=False,
|
| 42 |
-
)
|
| 43 |
-
|
| 44 |
|
| 45 |
def load_base_models_if_needed():
|
| 46 |
global BASE_MODELS
|
|
|
|
| 35 |
backend=REDIS_URL,
|
| 36 |
)
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
def load_base_models_if_needed():
|
| 40 |
global BASE_MODELS
|