I don't think you should be doing that kind of work in the web server
process.

If you want to run a task that may take a long time to finish then use
celery or something like that.

On Fri, Jun 5, 2015 at 1:34 PM, dk <[email protected]> wrote:

> this is what I got from putting
> *    time.sleep(60)*
> *    print "sleeped for 60secs"*
> *    print 6*
> directly in the view.
> and this is what the httpd log gave me.
>
>
>
> *[Fri Jun 05 11:31:02.034913 2015] [mpm_prefork:notice] [pid 33231]
> AH00170: caught SIGWINCH, shutting down gracefully[Fri Jun 05
> 16:31:02.046665 2015] [:error] [pid 33304] sleeped for 60secs[Fri Jun 05
> 16:31:02.046702 2015] [:error] [pid 33304] 6*
>
> why is shutting down gracefully, what does it mean? that killed to
> process?  why?    can this be happening to my subprocess?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/222a147f-1771-43f7-8b0c-621819cfb89e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/222a147f-1771-43f7-8b0c-621819cfb89e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei3qttBKFM-3q%3D05VW11ZmqYSFxyYuiKaV7hGsda%2BTJysg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to