[web2py] Re: scheduler can't normal run my script

2017-11-18 Thread Anthony
On Saturday, November 18, 2017 at 1:52:56 AM UTC-5, yytry...@gmail.com wrote: > > thank for you answer i use > python G:\\web2py\\web2py.py -K yj:sss -X -a '1' -i 0.0.0.0 -p 8000 & > to run my app,can you give me a example ? i understand the script,but i > don't know how to use it in my app >

[web2py] Re: scheduler can't normal run my script

2017-11-18 Thread Anthony
> > the scheduler_run run_out is > ['1'] > 1 > 2 > 5 > CVE-2017-6274 > http://cve.scap.org.cn/CVE-2017-6274.html > 6 > no except and 6 is print > but > > > db.get_data.update_or_insert(db.get_data.title==i.get_text(),title=i.get_text(),get_from='cve', > >

[web2py] Re: scheduler can't normal run my script

2017-11-17 Thread yytrying
thank you for your answer ,it run normal def cve(): try: try: url= 'http://cve.scap.org.cn/cve_list.php?action=recent' rea = requests.get(url) rea.encoding = 'utf-8' html = BeautifulSoup(rea.text,'html.parser') a=

[web2py] Re: scheduler can't normal run my script

2017-11-17 Thread yytrying
thank for you answer i use python G:\\web2py\\web2py.py -K yj:sss -X -a '1' -i 0.0.0.0 -p 8000 & to run my app,can you give me a example ? i understand the script,but i don't know how to use it in my app and when i use scheduler it auto use threading create so many task, i want to control it's

[web2py] Re: scheduler can't normal run my script

2017-11-16 Thread Dave S
On Wednesday, November 15, 2017 at 7:29:38 AM UTC-8, Anthony wrote: > > How are you starting the scheduler workers? Typically the scheduler is run > in the context of a web2py app environment, so the database and tasks are > defined in a web2py app. > > To run the scheduler outside of the

[web2py] Re: scheduler can't normal run my script

2017-11-15 Thread Anthony
How are you starting the scheduler workers? Typically the scheduler is run in the context of a web2py app environment, so the database and tasks are defined in a web2py app. To run the scheduler outside of the web2py context, see