django-db-queue
django-db-queue copied to clipboard
Allow jobs to be defined as coroutines
For some libraries, it's necessary to use async code, even if it's in a single process where the async benefits don't apply.
This transparently calls a job function as a coroutine if it is one, allow jobs defined async def my_job(job):
to "just work" :tm:.
Note that this doesn't use a shared event loop, it simply starts one at execution time.