Can you explain us more about what you are doing? You should not start/stop threads from web2py apps.
On Wednesday, 14 September 2016 08:36:51 UTC-5, MarkEdson AtWork wrote: > > > I have a need to stop a thread on the server from web2py. > > The thread is running and I've stored the thread id so I can retrieve it > when I want to abort. The abort code will look something like this: > > for tid, tobj in threading._active.items(): > if tid == stored_thread_id: > tobj.abort() > > when I try to call the abort() method on the object however I get the > following error: > > <type 'exceptions.TypeError'> 'bool' object is not callable > Version > web2py™ Version 2.14.6-stable+timestamp.2016.05.09.19.18.48 > Python Python 2.7.11: C:\web2py-ve\Scripts\python.exe (prefix: > C:\web2py-ve)Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > > Traceback (most recent call last): > File "C:\web2py-master\web2py\gluon\restricted.py", line 220, in restricted > exec(ccode, environment) > File > "C:/web2py-master/web2py/applications/riqburnin/controllers/default.py" > <http://127.0.0.1:8000/admin/default/edit/riqburnin/controllers/default.py>, > line 539, in <module> > File "C:\web2py-master\web2py\gluon\globals.py", line 405, in <lambda> > self._caller = lambda f: f() > File > "C:/web2py-master/web2py/applications/riqburnin/controllers/default.py" > <http://127.0.0.1:8000/admin/default/edit/riqburnin/controllers/default.py>, > line 432, in terminate_vds_DID_dwell > if thread_id and stop_server_thread(thread_id): > File > "C:\web2py-master\web2py\applications\riqburnin\modules\common_routines.py", > line 51, in stop_server_thread > tobj.abort() > TypeError: 'bool' object is not callable > > > How can I call this method without causing the error? > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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.com. For more options, visit https://groups.google.com/d/optout.