Skip to content

Commit 778bd87

Browse files
Merge pull request #12 from ankitkpandey1/dev
Dev
2 parents 542667b + 7a22802 commit 778bd87

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Enqueue task by:
4343
```python
4444
from flyby.brokers.redis import RQueue
4545

46-
task_queue = RQueue(REDIS_URL)
46+
task_queue = RQueue(REDIS_URL, namespace)
4747

4848
def api_function():
4949
task_name = 'task'
@@ -123,4 +123,4 @@ Run the setup:
123123
python setup.py install
124124

125125
## License
126-
This software is licensed under the LGPL-2.1 License.
126+
This software is licensed under the LGPL-2.1 License.

flyby/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def main(args=None):
2929
REDIS_URL = (
3030
f"redis://{settings.REDIS_HOST}:{settings.REDIS_PORT}/{settings.REDIS_DB}"
3131
)
32-
broker = RQueue(url=REDIS_URL)
32+
broker = RQueue(url=REDIS_URL, namespace=settings.NAMESPACE)
3333

3434
running_queues = []
3535
active_threads = {}

flyby/common/const.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Settings(BaseSettings):
66
REDIS_PORT: int
77
REDIS_DB: int
88
LOG_LOCATION: str
9+
NAMESPACE: str
910

1011
class Config:
1112
env_file = ".env"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from distutils.core import setup
55

6-
dependencies = ["redis>=2.0,<5.0", "pytest>=7.1.2", "pydantic-settings>=2.0.3"]
6+
dependencies = ["redis>=2.0,<5.0", "pytest>=7.1.2", "pydantic-settings==2.1.0"]
77

88
setup(
99
name="flyby",

0 commit comments

Comments
 (0)