Skip to content

django-ox 1.9.1

Choose a tag to compare

@PhiLily PhiLily released this 16 Oct 22:46
· 24 commits to main since this release
83da282

django-ox 1.9.1

A PostgreSQL worker with CONN_MAX_AGE = 0 and no OPTIONS["pool"] now logs one warning at start, because every task opens a new database connection. Set CONN_MAX_AGE = 600, or set OPTIONS["pool"] and leave CONN_MAX_AGE at 0. "Retaining worker connections" in the production guide lists both settings and the pool size to use.

An outcome write whose connection is refused is retried with waits of 50 ms doubling to 1.6 s. The waits total at most a tenth of LOCK_TIMEOUT, and a worker told to stop ends a wait at once.

The benchmarks page now reports django-ox 1.9.0 against django-tasks-db 0.13.0 at the same connection settings: 1.4 to 1.7 times the tasks per second with pooled or persistent connections.

No database migration is required. See the changelog for details.