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

Add disabling workers #218

Merged
merged 2 commits into from
Mar 15, 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
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@ pip install chainfury_server
python3 -m chainfury_server
```

You can also start the server with worker mode for long running chains:
```bash
# in different tab
redis-server

# in different tab
celery --app chainfury_server.engine.app worker --queues cfs

# set env variable to enable this
export CFS_ENABLE_CELERY=1
python3 -m chainfury_server
```

### Run Docker

Easiest way to run the server is to use docker. You can use the following command to run ChainFury:
Expand Down
353 changes: 0 additions & 353 deletions chainfury/components/qdrant/__init__.py

This file was deleted.

8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ requests = "^2.31.0"
python-dotenv = "1.0.0"
urllib3 = ">=1.26.18"
tabulate = "0.9.0"
"cryptography" = ">=41.0.6"
stability-sdk = { version = "0.8.3", optional = true }
qdrant-client = { version = "1.5.4", optional = true }
cryptography = ">=41.0.6"
boto3 = { version = "1.29.6", optional = true }

[tool.poetry.extras]
all = ["stability-sdk", "qdrant-client", "boto3"]
stability = ["stability-sdk"]
qdrant = ["qdrant-client"]
all = ["boto3"]

[tool.poetry.group.dev.dependencies]
sphinx = "7.2.5"
Expand Down
Loading
Loading