| from __future__ import annotations | |
| import os | |
| from celery import Celery | |
| BROKER_URL = os.getenv("ALIVEAI_CELERY_BROKER_URL", "redis://localhost:6379/0") | |
| RESULT_BACKEND = os.getenv("ALIVEAI_CELERY_RESULT_BACKEND", BROKER_URL) | |
| celery_app = Celery( | |
| "aliveai", | |
| broker=BROKER_URL, | |
| backend=RESULT_BACKEND, | |
| ) | |
| celery_app.conf.update( | |
| task_serializer="json", | |
| accept_content=["json"], | |
| result_serializer="json", | |
| timezone="UTC", | |
| enable_utc=True, | |
| task_track_started=True, | |
| ) | |
| celery_app.autodiscover_tasks(["app.tasks"]) | |
Xet Storage Details
- Size:
- 547 Bytes
- Xet hash:
- 02d5d96c6ae080eec708512c1a13367812735487dee2585dd460470e363f323e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.