When I was advocating for nogil/free-threading, I always said that it’s importan...
Hynek Schlawack @hynek@mastodon.social
When I was advocating for nogil/free-threading, I always said that it’s important not to judge threads by the APIs we have, but by the APIs we will build once they’re worth the trouble.
Here’s my first contribution: a way to run fault-tolerant background threads with PostgreSQL-based¹ orchestration: lease-based leader election & NOTIFY dispatch.
Hope you like it—it fell out of 2 other projects I want to open-source eventually.
¹ requires @psycopg, SQLAlchemy optional