Is there a way to wrap function calls in a decorator

前端 未结 0 613
后悔当初
后悔当初 2021-01-06 17:53

In my flask application, I interact with MongoDB. For resilience, I follow a pattern to wrap the insert/update operations in a retry loop like this -

retry =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题