Yelp / doloop

Task loop for keeping things updated
Other
10 stars 10 forks source link

proposed initial release #1

Closed coyotemarin closed 13 years ago

coyotemarin commented 13 years ago

Here's the proposed initial release for my Open Source task loop system.

Please read the docs (already up at http://packages.python.org/doloop), review the code, and make comments!

harleyk commented 13 years ago

Please remove hand written MySQL code for SQLAlchemy. Anyone who is interested in this is going to have SQLAlchemy installed and this will remove a bunch of code I can see even from the first commit.

coyotemarin commented 13 years ago

The SQL is in the docs for people who can read SQL and want to know exactly what's going on, but don't want to try to figure that out by reading the code.

It's also there to help people duplicate the API in other languages or on other databases.

coyotemarin commented 13 years ago

Shoot, I should really add tests to ensure that these functions work properly if they hit a deadlock (get() didn't until I fixed it a moment ago). Sigh.

coyotemarin commented 13 years ago

Julian: I don't want to make this dependent on sqlalchemy. And I definitely don't want to deal with table scans from silliness like loop.id != loop.id.

coyotemarin commented 13 years ago

(Julian has convinced me offline that depending on sqlalchemy is a good idea because it would allow us to support all databases. He is planning to submit a pull request for a later version.)