Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge commits 2.10.1 into master #641

Merged
merged 3 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### Version 2.10.1 (2023-12-18)
* Fixed packaging issues with 2.10.0.

### Version 2.10.0 (2023-12-18)
* Added `rqworker-pool` management command. Thanks @chromium7!
* Compatibility with Django 5.0. Thanks @perry!
* The scheduler now defaults to db 0. Thanks @bennylope!

### Version 2.9.0 (2023-11-26)
* Added an option to delete all failed jobs. Thanks @chromium7!
* You can now specify `SERIALIZER` option while declaring queues in `settings.py` Thanks @sophcass!
Expand Down
24 changes: 6 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ with the path to your queue class::

To use a custom job class, provide ``--job-class`` flag.

Support for scheduled jobs
Starting from version 2.10, running RQ's worker-pool is also supported::

python manage.py rqworker-pool default low medium --num-workers 4

Support for Scheduled Jobs
--------------------------

With RQ 1.2.0. you can use `built-in scheduler <https://python-rq.org/docs/scheduling/>`__
Expand Down Expand Up @@ -338,7 +342,7 @@ Additionally, these statistics are also accessible from the command line.

Configuring Sentry
-------------------
Django-RQ >= 2.0 uses ``sentry-sdk`` instead of the deprecated ``raven`` library. Sentry
Sentry
should be configured within the Django ``settings.py`` as described in the `Sentry docs <https://docs.sentry.io/platforms/python/django/>`__.

You can override the default Django Sentry configuration when running the ``rqworker`` command
Expand Down Expand Up @@ -382,11 +386,6 @@ RQ uses Python's ``logging``, this means you can easily configure ``rqworker``'s
"formatter": "rq_console",
"exclude": ["%(asctime)s"],
},
# If you use sentry for logging
'sentry': {
'level': 'ERROR',
'class': 'raven.contrib.django.handlers.SentryHandler',
},
},
'loggers': {
"rq.worker": {
Expand All @@ -396,17 +395,6 @@ RQ uses Python's ``logging``, this means you can easily configure ``rqworker``'s
}
}

Note: error logging to Sentry is known to be unreliable with RQ when using async
transports (the default transport). Please configure ``Raven`` to use
``sync+https://`` or ``requests+https://`` transport in ``settings.py``:

.. code-block:: python

RAVEN_CONFIG = {
'dsn': 'sync+https://public:[email protected]/1',
}

For more info, refer to `Raven's documentation <http://raven.readthedocs.org/>`__.

Custom Queue Classes
--------------------
Expand Down
2 changes: 1 addition & 1 deletion django_rq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = (2, 9, 0)
VERSION = (2, 10, 1)

from .decorators import job
from .queues import enqueue, get_connection, get_queue, get_scheduler
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='django-rq',
version='2.9.0',
version='2.10.1',
author='Selwin Ong',
author_email='[email protected]',
packages=['django_rq'],
Expand Down
Loading