File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -92,30 +92,23 @@ async def lifespan(app: FastAPI) -> AsyncGenerator:
9292 initialization_complete = Event ()
9393 app .state .initialization_complete = initialization_complete
9494
95- print ("1. Starting lifespan" )
9695 await set_threadpool_tokens ()
97- print ("2. Set threadpool tokens" )
9896
9997 try :
10098 if isinstance (settings , RedisCacheSettings ):
101- print ("3. Starting Redis cache initialization" )
10299 await create_redis_cache_pool ()
103100
104101 if isinstance (settings , RedisQueueSettings ):
105- print ("4. Starting Redis queue initialization" )
106102 await create_redis_queue_pool ()
107103
108104 if isinstance (settings , RedisRateLimiterSettings ):
109- print ("5. Starting Redis rate limit initialization" )
110105 await create_redis_rate_limit_pool ()
111106
112- print ("6. All initialization complete" )
113107 initialization_complete .set ()
114108
115109 yield
116110
117111 finally :
118- print ("7. Starting shutdown" )
119112 if isinstance (settings , RedisCacheSettings ):
120113 await close_redis_cache_pool ()
121114
You can’t perform that action at this time.
0 commit comments