Monday, January 11, 2016

Re: Execute code which runs on the database only when the server is running - and doesn't need users to view pages.

Oh ok,

Sorry I misunderstood your problem. How about running the celery task and then checking if http://localhost is up?

Regards,

Andréas

2016-01-11 13:31 GMT+01:00 Tony Flury <anthony.flury@btinternet.com>:
Andreas,

Thanks for your answer. Certainly it looks like running celery might alleviate the issue with threading stopping the management commands, but the problem with your suggestion lies with that flag. If My code was able to identify that the server is running to the point of being able to set the flag it would also know enough to start my background thread.

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a65bcce5-6270-4c88-912c-afee49c85631%40googlegroups.com.
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALXYUbkshnuZrPy9yuPo0DscAY7%3DehuJfjeZ%3DuRcwqdocj03Og%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment