Hi all,

I am building a chatbot right now and am initiating the 'chatbot-agent' 
globally in the views.py, so that it wouldn't have to be loaded/initiated 
for each API request.

*#global variable in views.py:*
*agent = Agent.load('/usr/src/app/models/current/dialogue', 
interpreter='/usr/src/app/models/current/nlu')*

Unfortunately, this initiating happens once per process defined in the 
uwsgi file. Since I do want to use multiple processes for my application, 
but need only one agent-ressource amongst all these processes, my question:

How can I use one ressource amongst several uwsgi processes in my Django 
application?

Thanks a lot!

Steffen

-- 
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+unsubscr...@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/1e3138e2-d955-4fc3-80dd-649b1b1a96ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to