Skip to content

Commit

Permalink
Update README and release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-gol committed Feb 4, 2022
1 parent dcdb96b commit 7d01ffa
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10']
tenants-app:
- django-tenants
celery: ['celery<5', 'celery']
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ the task's kwargs. The schema name is then popped from the task's kwargs in
`task_prerun` signal handler, and the connection's schema is changed
accordingly.

### Multiple databases support

New in `2.0.0`.

Inside your celery tasks you might be working with multiple databases. You might want to change the schema for
all of the connections, or just a subset of them.

You can now use the `CELERY_TASK_TENANT_CACHE_SECONDS` django setting, or `TASK_TENANT_CACHE_SECONDS` celery setting, or
the `tenant_databases` attribute of the `TenantTask` to a list of database names (the key in the `settings.DATABASES` dictionary).

If not set, the settings defaults to `["default"]`.

### Tenant objects cache

New in `0.3.0`.
Expand Down Expand Up @@ -110,5 +122,6 @@ That way you have full control over which schemas the task should be scheduled i
Python compatibility
====================

The `2.x` series support Python>=3.7.
The `1.x` series support Python>=3.6. Python 3.6 reached EOL 2021-12.
The `0.x` series are the last one to support Python<3.6.
The `1.` series support Python>=3.6
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
2.0.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'celery',
],
packages=find_packages(),
python_requires=">=3.6",
python_requires=">=3.7",
name='tenant-schemas-celery',
license='MIT',
long_description=long_description,
Expand Down

0 comments on commit 7d01ffa

Please sign in to comment.