Closed muellermartin closed 5 years ago
I didn't design Moa to run in production mode against sqlite that's why the rand()
is disabled when DEVELOPMENT
is True
. I just pushed a change that also checks for sqlite
in the connection URL so this will be disabled properly.
When I run the moa worker, I get following error:
This is likely caused by line 122 in worker.py. Thanks to Stack Overflow I found out, that the
func.rand()
function is specific to MySQL while PostgreSQL and SQLite need to usefunc.random()
instead. Unfortunately I never used SQLAlchemy before, therefore I'm not able to quickly create a PR with a fix, but if you need help say so :)