On Mar 20, 12:44 pm, Graham Dumpleton <[email protected]>
wrote:
> Your original query made it sound like that you wanted the behaviour
> for any URL, not just a specific URL.
Yes, my intention is that for any URL that would hit my code, if the
code is stale a reload should happen.

> What you are doing is bad and isn't going to work properly in all cases.
I'm aware of that, which is why I asked for a better way to do the
*same* here first, which apparently is "impossible".

> If all you want to do is ensure that process is only restarted when
> your atomic set of changes is done, then you just touch the WSGI
> script file.

What you describe to get an atomic reload amounts to:
:w
ctrl+a a
touch app.wsgi
cmd+tab
f5
(mind that's quickly deteriorating once you have more files/terminals
around)

What I want for an atomic reload is:
:w
cmd+tab
f5

> If you want that done via a specific HTTP URL, then have the request
> handler touch the WSGI script file. If a single process, then have it
> send a SIGINT to the process instead.
I don't want that.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to