dssg / givinggraph

An API tool to help understand the relationships between non-profits, for-profits, and the causes they support.
https://github.com/dssg/givinggraph/wiki/API
MIT License
28 stars 13 forks source link

Making news article retrieval and processing happen asynchronously #18

Closed JohnHBrock closed 10 years ago

JohnHBrock commented 10 years ago

There's some commented-out code in tasks.py's add_new_nonprofit(...) that does this and sort of works, but sometimes results in an apparent race condition, where SQL Alchemy doesn't see new rows in the database that were previously committed (e.g., a news article get retrieved and inserted into the DB, but querying the SQL Alchemy session for it returns null).

JohnHBrock commented 10 years ago

Closing, #19 subsumes this.