Hi all, we have added a section in our "examples" wiki page for
web2py:
http://projects.unbit.it/uwsgi/wiki/Example
I hope this can be useful
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
if the load goes wild, so probably
they are reaching some (configurable) limit.
If they experienced that on "benchmarking" there is a (old) procedure to
follow:
http://lists.unbit.it/pipermail/uwsgi/2009-December/000040.html
--
Roberto De Ioris
http://unbit.it
> Hi Roberto,
>
> I can use this setting in version 0.9.5?
>
> José
>
Hi, yesterday the 0.9.6 version has been released
--
Roberto De Ioris
http://unbit.it
and restart the uwsgi server.
Now go to the cherokee admin and map your resource (probably the default one)
to the address of your uwsgi server.
I suggest you to use TCP sockets instead of UNIX to avoid permission problems.
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
am ASAP.
In the mean time do not use its wizard but simply add a remote source
specifying the address of the uWSGI server
--
Roberto De Ioris
http://unbit.it
t to the directory /
All of your pythonpath and virtualenv are wrong.
In one of the previous post you managed to run flawlessly with the
embedded http server. Simply substitute --http with --socket
--
Roberto De Ioris
http://unbit.it
annoying task.
Download the current mercurial tip (it is stable as it will be the 0.9.6.1) and
it will
automagically manage the SCRIPT_NAME issue.
In the mean time i have written an updated cherokee wizard that supports
xml,python,wsgi and ini files.
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
7;ascii' codec can't decode byte 0xc3 in position
> 787: ordinal not in range(128)
> make: *** [all] Error 1
>
>
> :((
Can you post the output of
gcc -v
?
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
; redhat-linux
> Modelo de hilos: posix
> gcc versión 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC)
Ok, retry with the latest tip (it was a problem with python3.k compatibility)
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
use this script:
http://projects.unbit.it/uwsgi/browser/contrib/upstart/uwsgi.conf
you have to customize it for your needs but ALWAYS remember to pass
the --uid and --gid options (otherwise uWSGI will run as root)
--
Roberto De Ioris
http://unbit.it
ers for the uwsgi protocol are available even for Cherokee (included
in the official distribution), Apache2 (as external module) and lighttpd
(external, not very well tested, module)
I hope it can be useful
--
Roberto De Ioris
http://unbit.it
out https
and scheme.
uWSGI supports setting the scheme in two way, via the (non-standard)
UWSGI_SCHEME var or via the standard HTTPS cgi variable.
I suggest you to add the UWSGI_SCHEME var to uwsgi_params configuration:
UWSGI_SCHEME $scheme;
--
Roberto De Ioris
http://unbit.it
could be a huge commodity (he add only 2 lines instead of
defining a new file).
It is matter of taste, for example i prefer to have a file for every app :)
--
Roberto De Ioris
http://unbit.it
there is a list of (updated) example for web2py
http://projects.unbit.it/uwsgi/wiki/Example#Web2Py2uWSGI
(the links you posted are a bit outdated and over-complex)
--
Roberto De Ioris
http://unbit.it
ply add -p to your command line or n to your xml
config file.
Where n is the number of processes you want to spawn.
--
Roberto De Ioris
http://unbit.it
n-async-mode
>
You can get the updated stable-branch from here:
http://projects.unbit.it/hg/uwsgi-1.2
(the maintainance release will be tomorrow)
but generally you will get not advantages in using plain async mode with web2py
(probably that's why the bug popped up so late)
--
R
ntation for sure).
In addition to this, a little part of web-related popular libraries are
not thread-safe, that is why multithreading is not a "too much popular"
paradigm in python-hosting.
--
Roberto De Ioris
http://unbit.it
Il giorno 18/apr/2012, alle ore 11:11, Gour ha scritto:
> On Wed, 18 Apr 2012 08:54:29 +0200
> "Roberto De Ioris" wrote:
>
>> By the way, it is pretty strange you found 'threading' support a
>> uwsgi-blocker as very few (maybe 3-4, uWSGI included) p
gt;>> I've never read anything but good things about uwsgi. Django and
>>>>>>>> Flask both promote it.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Regards,
>>>>>>> Bruce Wade
>>>>>>> http://ca.linkedin.com/in/brucelwade
>>>>>>> http://www.wadecybertech.com
>>>>>>> http://www.fittraineronline.com - Fitness Personal Trainers Online
>>>>>>> http://www.warplydesigned.com
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Regards,
>>>>> Bruce Wade
>>>>> http://ca.linkedin.com/in/brucelwade
>>>>> http://www.wadecybertech.com
>>>>> http://www.fittraineronline.com - Fitness Personal Trainers Online
>>>>> http://www.warplydesigned.com
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Bruno Rocha
>>>> [http://rochacbruno.com.br]
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Bruno Rocha
>>> [http://rochacbruno.com.br]
>>>
>>>
>>
>>
>> --
>> --
>> Regards,
>> Bruce Wade
>> http://ca.linkedin.com/in/brucelwade
>> http://www.wadecybertech.com
>> http://www.fittraineronline.com - Fitness Personal Trainers Online
>> http://www.warplydesigned.com
>>
>>
>
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.fittraineronline.com - Fitness Personal Trainers Online
> http://www.warplydesigned.com
>
--
Roberto De Ioris
http://unbit.it
it should), remove --lazy (in that way you will abuse
fork() cow). And then remove --enable-threads (even if web2py uses threads
in a couple of areas, so i would not remove it)
--
Roberto De Ioris
http://unbit.it
<http://www.fittraineronline.com> -
>>>> Fitness Personal Trainers Online
>>>> http://www.warplydesigned.com
>>>>
>>>>
>>>
>>>
>>> --
>>> --
>>> Regards,
>>> Bruce Wade
>>> http://ca.linkedin.com/in/**brucelwade<http://ca.linkedin.com/in/brucelwade>
>>> http://www.wadecybertech.com
>>> http://www.fittraineronline.**com <http://www.fittraineronline.com> -
>>> Fitness Personal Trainers Online
>>> http://www.warplydesigned.com
>>>
>>>
>
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.fittraineronline.com - Fitness Personal Trainers Online
> http://www.warplydesigned.com
>
--
Roberto De Ioris
http://unbit.it
s!!!] and you are ready) or choose a full webserver (you have a
lot of choice). But this is a second step...
--
Roberto De Ioris
http://unbit.it
> Thanks. The versions I got were in the apt-get repositories for that
> version of Ubuntu.
>
> I hadn't realized Cherokee had been abandoned.
not abandoned, it is "on hold" ("or slowed down" in development)
--
Roberto De Ioris
http://unbit.it
ssets on a dedicated cdn, having a simple http proxy
for your app seems to be a reasonable choice.
Maybe it is time to add https support...
--
Roberto De Ioris
http://unbit.it
ey are using something for free, and
helping in something "annoying" like writing docs is always appreciated.
--
Roberto De Ioris
http://unbit.it
> Changes:
> - keep-alive support from nginx.
Hi Michele, does wsgitools SCGI server really supports keepalive
connections ?
That would be a kick-ass feature i need to copy for sure :)
--
Roberto De Ioris
http://unbit.it
> On Thu, 17 May 2012 06:22:20 +0200
> "Roberto De Ioris" wrote:
>
>> If you are able to follow it, then adding a webserver should be a
>> pretty easy task (and yesterday, uWSGI got https support so you do
>> not even need a full webserver for simple deploy
ve been beaten by some "funny"
distro choice.
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
d wsgihandler module and bind to socket
127.0.0.1:9001)
Now visit your website with your browser. Does it work ?
If it does not work double check if /var/web2py is the correct path of your
web2py installation.
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
; avail.
>
>
http://projects.unbit.it/uwsgi/wiki/ParsingOrder
--
Roberto De Ioris
http://unbit.it
is a lot easier than init
scripts and Ubuntu will not move to SystemD, so you'd better to invest a
bit of time in it).
Another important link is that one:
http://projects.unbit.it/uwsgi/wiki/ThingsToKnow
I think you have all the pieces.
--
Roberto De Ioris
http://unbit.it
ve a sever with nginx+uwsgi+Web2Py and I would like also to configure
> hgweb(Mercurial), but I'm not able to configure nginx/uwsgi...
>
>
> no one??
Do you want web2py under /w2p and mercurial under something like /hg for the
same domain ?
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
Il giorno 29/mag/2012, alle ore 17:37, orsomannaro ha scritto:
> Il 29/05/2012 15:43, Roberto De Ioris ha scritto:
>
>> Do you want web2py under /w2p and mercurial under something like /hg for the
>> same domain ?
>
>
> Yes, perfect!!
Create a WSGI modul
uggest to continue installing it via pip or sources (at
least until there will be official debian packages constantly synced)
--
Roberto De Ioris
http://unbit.it
--
uWSGI to work pretty easily on dreamhost (via
fastcgi). Would you mind asking them if they want to contact me privately
to make some test ?
--
Roberto De Ioris
http://unbit.it
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To uns
>
> Thanks,
>
> Andre
If your app is multithreads based you cannot spawn additional processes
(they do not share memory).
Just set processes to 1 and threads to a decent value
--
Roberto De Ioris
http://unbit.it
--
---
You received this message because you are subscribed to t
and obviously better performance):
https://github.com/unbit/uwsgi-docs/blob/master/tutorials/dreamhost.rst
--
Roberto De Ioris
http://unbit.it
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and s
be
compiled on windows (using cygwin), and the example in the quickstart
works on windows too (included the https part)
Bye
--
Roberto De Ioris
http://unbit.it
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from
uld not experiment problems.
--
Roberto De Ioris
http://unbit.it
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.
o unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Roberto De Ioris
http://unbit.it
--
---
You received this message because you are s
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Roberto De Ioris
http://unbit.it
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsub
n libraries used to
compile this .exe.
Another approach:
You can put all of the required dll (about 10) + the uwsgi.exe + the
python environment (site-packages...) + web2py dir in the same directory
and you can move to systems without cygwin and python. I suppose you can
even make an msi installer.
> i still can access it both of web2py.com and my own
>
All fine from both Italy and Germany
--
Roberto De Ioris
http://unbit.it
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop
; but it ends up to the login page .. WITHOUT Password box , Damn..
>
> What to do?
>From 1.3 (latest stable) you can use https in uWSGI too:
http://projects.unbit.it/uwsgi/wiki/HTTPserver#HTTPSsupportfrom1.3-dev
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
--
WSGI Emperor"
start on runlevel [2345]
stop on runlevel [!2345]
exec uwsgi --emperor /etc/uwsgi --logto /tmp/uwsgi.log
4# start uwsgi-emperor
...now just start dropping uWSGI config files in /etc/uwsgi and your
instances will start automatically (check /tmp/uwsgi.log in case of
problems)
--
Roberto De Ioris
http://unbit.it
--
ntu. Every time i did some kind of upgrade
something screwed up. You cannot really take apache as an example as it is
integrated in debian from ages and you will find users blaming at it after
an upgrade even in that time.
By the way, i cannot help you with debian-based packages as i really do
not
k error to the client (even
if the response was correctly generated).
For non-legit request i think (hope ?) it is not a problem being rejected
by nginx.
--
Roberto De Ioris
http://unbit.it
--
's why uWSGI exists and that's why you cannot compare it with gunicorn
(different philosophy and different target)
--
Roberto De Ioris
http://unbit.it
ed of your progress
> Thanks
> Peter
>
>
>
> On Jan 22, 5:06 am, Bruno Rocha wrote:
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
> can I rotate log (uwsgi.log) with this command? I don't want the log file
> to go on increasing in size
log-maxsize = n
where n is the maximum size in bytes
--
Roberto De Ioris
http://unbit.it
b = get_database(request)
> query = get_query(request)
> if not query:
> return None
> response.headers['Content-disposition'] = 'attachment;
> filename=%s_%s.csv'\
> % tuple(request.vars.query.split('.')[:2])
> r
n only really added in 1.1 (still
unreleased) so i really do not know why you have that flag turned on :)
--
Roberto De Ioris
http://unbit.it
a
new instance, you remove it to remove an instance, you touch it to reload
an instance. No script, nor funny permission issues (you can choose the
directory in which config files are looked up).
In addition to this, 0.9.6 is near to end-of-maintainance (june 2012), so
upgrading to 1.x would be in general a better choice.
--
Roberto De Ioris
http://unbit.it
et http://projects.unbit.it/downloads/uwsgi-1.0.4.tar.gz
tar zxvf uwsgi-1.0.4.tar.gz
cd uwsgi-1.0.4
make
if all goes well run uWSGI
./uwsgi --http-socket :8080 --chdir --module wsgihandler
point your browser to port 8080 on localhost and you should see your app
For webfaction substitute :8080 with the assigned port
--
Roberto De Ioris
http://unbit.it
> On 24 February 2012 15:46, Roberto De Ioris wrote:
>
>>
>> This is a quick sequence you can run on debian too:
>>
>> wget http://projects.unbit.it/downloads/uwsgi-1.0.4.tar.gz
>> tar zxvf uwsgi-1.0.4.tar.gz
>> cd uwsgi-1.0.4
>> make
>>
>
y with no effort,
try to follow the http-router development (even if you could need
something like nginx/haproxy for managing https connections).
--
Roberto De Ioris
http://unbit.it
SGI alone in the network.
--
Roberto De Ioris
http://unbit.it
'uwsgi cores' in the logs. They are referred
to threads and async modes. They do not reflect the cpu core in which it
is running.
--
Roberto De Ioris
http://unbit.it
or waiting for wsgi.input data
>
>
>
If you are on chrome + https on cherokee, it will not works. it is a
cherokee bug, you can try with latest svn snapshot (iirc it has been fixed
there)
--
Roberto De Ioris
http://unbit.it
thing for certain time, but instead
> share data (set/get common data) across my uwsgi processes.
>
>
dict-based:
http://projects.unbit.it/uwsgi/wiki/CachingFramework
queue-based:
http://projects.unbit.it/uwsgi/wiki/QueueFramework
raw-memory:
http://projects.unbit.it/uwsgi/wiki/SharedArea
--
Roberto De Ioris
http://unbit.it
Deranek
Mike Kuznetsov
(sorry if i have missed someone)
You can download uWSGI 1.1 from
http://projects.unbit.it/downloads/uwsgi-1.1.tar.gz
--
Roberto De Ioris
http://unbit.it
al patch soon or later. Currently it is
only a (slow) work in progress, as (at least for me) having full knowledge
of pypy implementation is not easy as the cpython one
--
Roberto De Ioris
http://unbit.it
ge files
> that take about a minute or so to upload?.
>
> Thanks!,
>
>Carlos
>
>
Check your nginx error log, you are probably receiving a 413 error (entity
too large). By default the limit is 1 mb
http://wiki.nginx.org/HttpCoreModule#client_max_body_size
--
Roberto De Ioris
http://unbit.it
file )
>
Hi, can you post the whole command line ?
--
Roberto De Ioris
http://unbit.it
log -t 20 --async 12 --ugreen
> --limit-as 36 -r --no-orphans -M -p 1 --touch-reload
> /home/myusername/tmp/uwsgireload.txt --reload-on-rss 50
>
Oh ok, you are pratically using --http instead of --http-socket
The first one spawn a dedicated http server, the second one is a shortcut
for
webserver <-> socket <-> python scgi parser <-> web2py
(for uWSGI with uwsgi protocol)
webserver <-> socket <-> C uwsgi parser <-> web2py
But generally, if you need to attach an app to a webserver, implementing
SCGI is the easiest choice (both uwsgi and fastcgi are binary protocol,
and writing good http parser is not the easiest task in the world)
--
Roberto De Ioris
http://unbit.it
ks in the same way of uwsgi:
pypyuwsgi.py --socket :3031 --module welcome
>
> thank you again for your awesome project
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
itten, this is good. But
blaming
a project for not being loyal to some concept is silly. It looks like more
a religious approach than a techy one.
Web2py works (and most of the time it simply works thanks to its design),
it is well documented and AFAIK Massimo does not like killing kittens.
But yes, if your priest.py does not approve it, do not use it :P
--
Roberto De Ioris
http://unbit.it
e uwsgi sources dir)
/home/my_user/bin/python2.7 uwsgiconfig.py --build
another solution is installing setuptools/pip in the new environment and
install uWSGI from it:
/home/my_user/bin/pip install uwsgi
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
he directory where python core modules are, not the directory
containing libpython.so
Are you sure you have added --enable-shared in your ./configure script ?
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
> messes up the users.
>
> Any ideas?
Have you tried disabling https-requirement for the web2py admin interface ?
If it works the problem is clear and bypassing it to make webfaction happy
would be easy
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
middleware, but i would like to be sure
about it.
--
Roberto De Ioris
http://unbit.it
mmitted support for X-FORWARDED-SSL header (it looks like it is
what webfaction is using). It works only in --http-socket mode
(not --http one). If you can install the mercurial version on webfaction and
test it, i will backport the patch to the stable tree.
Thanks
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
> OK, will give it a shot and let you know.
>
> What is the mercurial command for the version you committed?
>
> Michel
>
hg clone http://projects.unbit.it/hg/uwsgi
cd uwsgi
make
--
Roberto De Ioris
http://unbit.it
rce-limited environment could be very useful.
--
Roberto De Ioris
http://unbit.it
at paranoia?
>
Maybe there are different uWSGI versions in your account, check the
startup logs to see which one is running
--
Roberto De Ioris
http://unbit.it
> But where do I download the code for that version?
In the directory where you cloned the sources yesterday, run
hg pull
hg update
make
--
Roberto De Ioris
http://unbit.it
other
people.
There are limits in every joke, i suppose we only have to be smart and
conscious about this.
Now i came back eating spaghetti and playing my mandolino.
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
re mostly
ignored.
The recent "be politically correct at all costs" way of thinking scares me a
bit… (it would force me to know all of the cultures out there ;)
Sorry for the OT
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
n the debug-server then follow this
guide:
http://winpdb.org/docs/embedded-debugging/
--
Roberto De Ioris
http://unbit.it
run web2py rocket server to setup password
python2.6 web2py.py
# set your password then kill the server
cp parameters_8080.py parameters_PORT.py
# where PORT is your webfaction port
cd ..
# start uwsgi
./uwsgi/uwsgi --wsgi-file web2py/wsgihandler.py -m --http-socket :PORT
--
Roberto De Ioris
http://unbit.it
king = flock
and run make
this should work even in so ancient systems :)
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
-reload /user/uwsgireload.txt --evil-reload-on-rss 64
you will gain one process and async monitoring of the --evil-reload-on-rss
option. You should make a run of the server with the -m option to get
memory usage after each request in your logs, to eventually catch some
leak of your app.
--
Roberto De Ioris
http://unbit.it
ails
something really bad is in place :)
--
Roberto De Ioris
http://unbit.it
ving it blocked for all the upload cycle.
Add -p (ncpu*2 is a good number to start with) or if you are using a
0.9.7.x release you can use threads with --threads
--
Roberto De Ioris
http://unbit.it
ng uploads to pass the request to uWSGI only when the upload is
done.
I will talk to the Cherokee lead developer to reintroduce this feature
(before 1 point releases Cherokee worked that way)
--
Roberto De Ioris
http://unbit.it
is the equivalent of X-Sendfile in nginx) for all
the downloads.
>
> On 27 ÜÐà, 11:46, "Roberto De Ioris" wrote:
>> > Thx, 4 helps.
>> > But so if 4 users go to page with image, or upload some file, all will
>> > be crashed again.
>> > Is it a good t
nt, but can make amazing
concert with the best 'sessions musicians' out there (as he has the skills
to choose them). So, as another user said in this thread, it can plays
both ways.
Sorry "batteries included" and "on steroids" are so over-used... ;)
--
Roberto De Ioris
http://unbit.it
> On Thu, May 12, 2011 at 2:00 AM, Roberto De Ioris
> wrote:
>
>> You have to read it in the rock/heavy metal way, where Web2Py is the
>> talented player that can manage every intrument,
>>
>
> http://en.wikipedia.org/wiki/Ayreon
>
Exactly :)
--
Roberto De Ioris
http://unbit.it
o. 0.9.8 even talks
fastcgi so you can set --protocol=fastcgi to gain a little more
performance
--
Roberto De Ioris
http://unbit.it
/log/uwsgi-python/web2py.log --pid
>
>
>
Add --memory-report to your uWSGI command line. You will get in
/var/log/uwsgi-python/web2py.log the memory consumed after each request.
If there is a leak you should find it preatty easy.
--
Roberto De Ioris
http://unbit.it
2py (and for sure it is not a uWSGI as its policy is: NO
LEAK).
Probably something in your app is leaking memory, but in the mean time you
can "patch" the problem with something like
--reload-on-rss
where n is the number of megs after which a worker is restarted (freeing
its memory). I think 200 (megs) should be enough to maintain your
webserver healthy.
--
Roberto De Ioris
http://unbit.it
# ...
>
>
I do not know if it is pertinent with the topic, but uWSGI has tons of
(cheap, very cheap compared with solutions like celery) facilities to
allow this sort of tasks:
http://projects.unbit.it/uwsgi/wiki/Decorators
--
Roberto De Ioris
http://unbit.it
talled
> is it compatible with uwsgi decorators?
>
Hardo to say. 0.9.7 branch is now obsolete, and a lot of fix has been
added to signal framework in 0.9.8. If you want to manage timer reliably
you should use the latest tip (it is really the 0.9.8.2 release, i am only
waiting for a last patch
decorators package but its only
> available for Ubuntu 11.10
You can download the file from here
http://projects.unbit.it/uwsgi/browser/uwsgidecorators.py
and put it in the web2py directory (or whatever dir you have in the pythonpath)
--
Roberto De Ioris
http://unbit.it
rating with web2py is not a problem, as they all works with normal python
functions, so simply define them and call asynchronously from web2py views.
Again, i am not sure to understand what you are trying do to, but i bet some of
the uWSGI features will help you without istalling additional stacks.
--
Roberto De Ioris
http://unbit.it
api + web2py integration.
I will write something in the next few hours
--
Roberto De Ioris
http://unbit.it
Just a tiny example, but should be enough for spooler jobs and timers
http://projects.unbit.it/uwsgi/wiki/Decorators#Example:web2pyspoolertimer
Obviously you can call web2py module/functions in the mytasks.py file (just
import them
as a normal python app)
--
Roberto De Ioris
http://unbit.it
e signal framework. (the official release should happen this
week)
>
>
>
> On 7/11/11 1:34 PM, Roberto De Ioris wrote:
>> Just a tiny example, but should be enough for spooler jobs and timers
>>
>> http://projects.unbit.it/uwsgi/wiki/Decorators#Example:web2pyspoolertimer
>&
pp/
wsgihandler
directory
mytasks
...
--
Roberto De Ioris
http://unbit.it
1 - 100 of 120 matches
Mail list logo