[Twisted-Python] Deferring 201 status code
![](https://secure.gravatar.com/avatar/6f27472bb21bd029be06de853f31ffd3.jpg?s=120&d=mm&r=g)
Hi, My controller code first updates DB and then sends out 201 status code indicating it is done updating in DB. Issue is somebody waiting to fetch this update from DB will not work immediately because DB update takes some time(approximately 0.5 second) to come into effect. Is there a way I can control/defer sending out 201? Any sample code/link will be appreciated. Regards Vikas
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
Can you supply an <http://sscce.org <http://sscce.org/>> that demonstrates your problem? There are definitely solutions but it sort of depends on exactly how you want this to work. Also, what database are you using? -glyph
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
Can you supply an <http://sscce.org <http://sscce.org/>> that demonstrates your problem? There are definitely solutions but it sort of depends on exactly how you want this to work. Also, what database are you using? -glyph
participants (2)
-
Glyph
-
Vikas Kumar