self.db(self.db.scheduler_worker.is_ticker == True).update(status=PICK)
(This is a web application which uses the scheduler pretty extensively.) Seems like multiple connections are competing for access to the same scheduler_worker row. Seems to me like a web2py bug. Any help would be greatly appreciated. Thanks!if immediate:
- self.db(self.db.scheduler_worker.is_ticker == True).update(status=PICK)
+ scheduler_worker_tickers = self.db(self.db.scheduler_worker.is_ticker == True).select()
+ for scheduler_worker_ticker in scheduler_worker_tickers:
+ scheduler_worker_ticker.update_record(status=PICK)
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/ZBv43p3w_MM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+un...@googlegroups.com.