Skip to content

Commit a0da046

Browse files
authored
Merge branch 'main' into main
2 parents 238f779 + 4778802 commit a0da046

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# OS Files
2+
.DS_Store
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2.2.0 (unrelased)
2+
--------------------
3+
- add ssl support for redis with sentinel, thanks @cyberjunk
4+
- add RedisCluster Support, thanks @kkinder
5+
- bugfixes
6+
17
2.1.1 (2023-06-11)
28
---------------------
39
- fix compatability with Celery 5.3.0, thanks @jkseppan

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version:
88
version-%: OLDVERSION:=$(shell python setup.py --version)
99
version-%: NEWVERSION=$(subst -,.,$*)
1010
version-%:
11-
sed -i -e s/$(OLDVERSION)/$(NEWVERSION)/ $(VERSION_FILE)
11+
sed -i '' -e s/$(OLDVERSION)/$(NEWVERSION)/ $(VERSION_FILE)
1212
git ci setup.py -m"bump version to $*"
1313

1414
lint:

redbeat/schedulers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def get_redis(app=None):
127127

128128
connection = RedisCluster.from_url(conf.redis_url, **redis_options)
129129
elif conf.redis_url.startswith('redis-sentinel') and 'sentinels' in redis_options:
130+
from redis.sentinel import Sentinel
131+
130132
connection_kwargs = {}
131133
if isinstance(conf.redis_use_ssl, dict):
132134
connection_kwargs['ssl'] = True
@@ -138,7 +140,7 @@ def get_redis(app=None):
138140
db=redis_options.get('db', 0),
139141
decode_responses=True,
140142
sentinel_kwargs=redis_options.get('sentinel_kwargs'),
141-
**connection_kwargs
143+
**connection_kwargs,
142144
)
143145
_set_redbeat_connect(app, REDBEAT_SENTINEL_KEY, sentinel, retry_period)
144146
connection = None

setup.py

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
from setuptools import setup
23

34
long_description = open('README.rst').read()
@@ -6,7 +7,7 @@
67
name="celery-redbeat",
78
description="A Celery Beat Scheduler using Redis for persistent storage",
89
long_description=long_description,
9-
version="2.1.1",
10+
version="2.2.0",
1011
url="https://github.com/sibson/redbeat",
1112
license="Apache License, Version 2.0",
1213
author="Marc Sibson",

0 commit comments

Comments
 (0)