and if I run: uwsgi --socket :3031 --spooler /home/franciscocosta/spooler
--master --processes 4 --import
/opt/web2py/applications/app/modules/uwsgidecorators.py
I get this:
*** Starting uWSGI 0.9.9.2 (64bit) on [Sat Dec 3 12:12:22 2011] ***
compiled with version: 4.6.1 on 04 October 2011 13:08:10
detected binary path: /usr/local/bin/uwsgi
your memory page size is 4096 bytes
uwsgi socket 0 bound to TCP address :3031 fd 3
Python version: 2.7.2+ (default, Oct 4 2011, 20:41:12) [GCC 4.6.1]
Python main interpreter initialized at 0xa072a0
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 3553)
spawned the uWSGI spooler on dir /home/franciscocosta/spooler with pid 3554
spawned uWSGI worker 1 (pid: 3555, cores: 1)
spawned uWSGI worker 2 (pid: 3556, cores: 1)
spawned uWSGI worker 3 (pid: 3557, cores: 1)
spawned uWSGI worker 4 (pid: 3558, cores: 1)
managing spool request
uwsgi_spoolfile_on_franciscocosta-desktop_3089_30_0_1322914353_369457 ...
Traceback (most recent call last):
File "/opt/web2py/applications/app/modules/uwsgidecorators.py", line 21,
in manage_spool_request
ret = spooler_functions[vars['ud_spool_func']](vars)
KeyError: 'test_function'
Francisco Costa
http://franciscocosta.com
On Sat, Dec 3, 2011 at 11:56, Francisco Costa <[email protected]>wrote:
> Yes, arguments are a dict of strings, but the spooler doesn't process
> automatically
> I tried it manually but I get this
>
> uwsgi --socket :3031 --spooler /home/franciscocosta/spooler --master
> --processes 4 --import /opt/web2py/applications/app/modules/test.py
> --module /opt/web2py/applications/app/modules/uwsgidecorators.py
> *** Starting uWSGI 0.9.9.2 (64bit) on [Sat Dec 3 11:54:35 2011] ***
> compiled with version: 4.6.1 on 04 October 2011 13:08:10
> detected binary path: /usr/local/bin/uwsgi
> your memory page size is 4096 bytes
> uwsgi socket 0 bound to TCP address :3031 fd 3
> Python version: 2.7.2+ (default, Oct 4 2011, 20:41:12) [GCC 4.6.1]
> Python main interpreter initialized at 0x230d2e0
> your server socket listen backlog is limited to 100 connections
> *** Operational MODE: preforking ***
> Traceback (most recent call last):
> File "/opt/web2py/applications/app/modules/test.py", line 1, in <module>
> from uwsgidecorators import *
> ImportError: No module named uwsgidecorators
> ImportError: Import by filename is not supported.
> unable to load app mountpoint=
> *** no app loaded. going in full dynamic mode ***
> *** uWSGI is running in multiple interpreter mode ***
> spawned uWSGI master process (pid: 3342)
> spawned the uWSGI spooler on dir /home/franciscocosta/spooler with pid 3343
> spawned uWSGI worker 1 (pid: 3344, cores: 1)
> spawned uWSGI worker 2 (pid: 3345, cores: 1)
> spawned uWSGI worker 3 (pid: 3346, cores: 1)
> spawned uWSGI worker 4 (pid: 3347, cores: 1)
> managing spool request
> uwsgi_spoolfile_on_franciscocosta-desktop_3090_28_0_1322913181_504023 ...
> managing spool request
> uwsgi_spoolfile_on_franciscocosta-desktop_3090_28_0_1322913181_504023 ...
> managing spool request
> uwsgi_spoolfile_on_franciscocosta-desktop_3090_28_0_1322913181_504023 ...
>
> and my db person stills empty
>
> Francisco Costa
> http://franciscocosta.com
>
>
>
>
> On Sat, Dec 3, 2011 at 11:37, Roberto De Ioris <[email protected]> wrote:
>
>>
>> > Hi Roberto,
>> > thanks for the tip..
>> > Now I don't have any errors and a file is created in the spooler page.
>> >
>> > How can I start to process the content of the spooler folder?
>>
>> It will starts automatically, be sure that "arguments" is a dictionary of
>> pure strings.
>>
>>
>>
>> --
>> Roberto De Ioris
>> http://unbit.it
>> _______________________________________________
>> uWSGI mailing list
>> [email protected]
>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>>
>
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi