[Twisted-Python] Deferring 201 status code

Glyph glyph at twistedmatrix.com
Tue Jun 23 19:36:18 MDT 2015


> On Jun 23, 2015, at 10:17 AM, Vikas Kumar <kumarvikas2605 at gmail.com> wrote:
> 
> 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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20150623/705479e6/attachment-0002.html>


More information about the Twisted-Python mailing list