This file contains hidden or 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
# We've been trying to figure out how to run async code from | |
# Celery until it gets support for it | |
# | |
# This is an extracted example which should fit into | |
# https://github.com/anomaly/lab-python-server | |
import asyncio | |
from uuid import UUID | |
from sqlalchemy.ext.asyncio import AsyncSession | |
from ...celery import app |