[storm] initialize_globals() is not thread safe
Ivan Zakrevskyi
ivan.zakrevskyi at rebelmouse.com
Tue Jan 20 16:38:24 UTC 2015
I've found bagtacker and created ticket:
https://bugs.launchpad.net/storm/+bug/1412845
2015-01-20 17:06 GMT+02:00 Ivan Zakrevskyi <ivan.zakrevskyi at rebelmouse.com>:
> Hi, all.
>
> I've an error on highload uwsgi.
>
> Maybe initialize_globals() should lock threads.
>
> There is single Store object for each thread, according docs:
> https://storm.canonical.com/Manual#Working_with_multiple_threads
>
> File "./community/views/components/sharing.py", line 33, in process
> twitter_profile = store.get(StTwitterProfile, (context_id, site.owner_id))
>
> File "./.virtualenvs/rebelmouse/local/lib/python2.7/site-packages/storm/store.py",
> line 181, in get
> variable = column.variable_factory(value=variable)
>
> RuntimeError: initialize_globals() failed the first time it was run
More information about the storm
mailing list