You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
solution for synchronous tasks:
using a lambda fundus, you can pass an application object into a recurring task bypassing the limit of fastapi_utils.tasks.NoArgsNoReturnFuncT
I need to get
app.state
to retrieve the Postgres pool driver in my periodic task.Because task repeating every 5 sec.
How can I do this with the fastapi routing case (when
app.state
is available only inrequest
object)?In this example, I'm forced to create gspread and asyncpg connections every 5 seconds this is a terrible decision.
The text was updated successfully, but these errors were encountered: