supertokens-python icon indicating copy to clipboard operation
supertokens-python copied to clipboard

Celery integration

Open leemurus opened this issue 1 year ago • 1 comments

At the moment, your implementation is suitable for web applications. But I doubt that anyone in medium or large projects uses only one web. We are currently using celery+fastapi in our project. And there are some questions in terms of how to properly initialize this solution? At the start of each task, should we start the initialization of supertokens? Or check whether the app is initialized with each request to user?

I would be very glad if you write to the doc about integrating this solution into Celery, since the Celery community is huge. https://github.com/celery/celery

leemurus avatar Feb 08 '24 17:02 leemurus

In general, if you are using our backend SDK functions, you need to call the supertokens.init once per process.

rishabhpoddar avatar Feb 09 '24 07:02 rishabhpoddar