RealOrangeOne / django-tasks

A reference implementation and backport of background workers and tasks in Django
https://pypi.org/project/django-tasks/
BSD 3-Clause "New" or "Revised" License
314 stars 22 forks source link

Remove connection handling scaffolding #27

Closed RealOrangeOne closed 3 months ago

RealOrangeOne commented 3 months ago

The current implementations assume a backend will construct a client in the constructor, and want to close the connection after each request with .close. For the 3 built-in backends, this is a noop.

Instead, we should remove this functionality, letting backend developers implement what's needed.

The constructor docstring will need changing, and the removal of the .close method.