>seankerr.dev

These are my experiences in life and the past 2 decades of software development.

Sep 7, 2023

Released celery-sqlalchemy

by Sean Kerr

When it comes to distributed events in Python, Celery shines. It works flawlessly with RabbitMQ allowing you to run a limitless amount of simultaneous tasks across any number of servers.

There is one drawback when using it with SQLAlchemy models though, and that is that Celery doesn’t serialize them out-of-the-box. And even if it did, the data will not be deserialized back into a model on the other end.

I created celery-sqlalchemy to solve this very problem so you can focus on writing code and stop worrying whether or not your data will be correct on the other end.

If you’re using Celery with SQLAlchemy and need to dispatch model tasks then please give celery-sqlalchemy a try. I would appreciate any feedback.