Why do i have to run it separately? Ain't there any other method so that i just specify the number of workers and as my application starts they are automatically created/started?
If there is no such thing provided by web2py then I want to know how safe it is to fire threads from web2py application from db callbacks? And are there any thread pools provided by web2py? -- thanks and regards apoorve On Saturday, June 22, 2013 11:38:08 PM UTC+5:30, Massimo Di Pierro wrote: > > On Saturday, 22 June 2013 06:31:51 UTC-5, Niphlod wrote: > >> indecently --> independantly :-P >> > > Damn spell checker! > > >> >> more workers for the same app can be started also with >> >> nohup python web2py.py -K app1,app1,app1,app1,app1 >> >> On Saturday, June 22, 2013 9:04:45 AM UTC+2, Massimo Di Pierro wrote: >>> >>> You can but you do not. >>> >>> The scheduler (the instance of web2py runnking with -K) is a separate >>> process. It must be started and running indecently of apache. for example: >>> >>> sudo -u www-data bash >>> cd /.../web2py >>> # make 5 worker nodes >>> nohup python web2py.py -K app1,app2,app3 & >>> nohup python web2py.py -K app1,app2,app3 & >>> nohup python web2py.py -K app1,app2,app3 & >>> nohup python web2py.py -K app1,app2,app3 & >>> nohup python web2py.py -K app1,app2,app3 & >>> >>> >>> >>> On Saturday, 22 June 2013 01:44:15 UTC-5, Apoorve Mohan wrote: >>>> >>>> Hello All >>>> >>>> I am using apache using mod_wsgi to run my web2py app. I need to >>>> specify -K command line option so that i can use schedulers. >>>> Please suggest that how can these command line options be passed when >>>> running the app on apache. >>>> >>>> -- >>>> Regards >>>> >>>> Apoorve >>>> >>> -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

