Comments (3)
The issue with evaluations not stopping on self-hosted Agenta could be related to the configuration of the Celery worker. The celery_worker
service is responsible for handling background tasks, including evaluations. If the Celery worker is not properly configured or not running, evaluations may not be processed correctly.
To resolve this issue, ensure that the celery_worker
service is correctly configured and running. Here is the relevant part of the docker-compose.gh.yml
file for the celery_worker
service:
celery_worker:
container_name: celery-worker-1
image: ghcr.io/agenta-ai/agenta-backend
command: >
celery -A agenta_backend.main.celery_app worker --concurrency=1 --loglevel=INFO
environment:
- MONGODB_URI=mongodb://username:password@mongo:27017
- REDIS_URL=redis://redis:6379/0
- CELERY_BROKER_URL=amqp://guest@rabbitmq//
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- FEATURE_FLAG=oss
volumes:
- ./agenta-backend/agenta_backend:/app/agenta_backend
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- mongo
- rabbitmq
- redis
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- agenta-network
Ensure that the celery_worker
service is up and running by checking the status of the Docker containers:
docker-compose -f docker-compose.gh.yml ps
If the celery_worker
service is not running, you can start it with:
docker-compose -f docker-compose.gh.yml up -d celery_worker
Additionally, check the logs for the celery_worker
service to identify any issues:
docker-compose -f docker-compose.gh.yml logs celery_worker
If the celery_worker
service is running correctly and the issue persists, it might be related to the evaluation status management in the code. The runningStatuses
constant in the agenta-web/src/services/evaluations/index.ts
file defines the statuses that indicate an evaluation is still running. Ensure that the evaluation status is being updated correctly in the backend and that the frontend is correctly interpreting these statuses.
Moreover, you should also check the backend code, specifically in the agenta-backend/agenta_backend/routers/evaluation_router.py
file, to ensure that the evaluation status is being fetched and updated correctly. The fetch_evaluation_status
endpoint is responsible for returning the status of an evaluation. Make sure that this endpoint is functioning correctly and that the status is being updated in the database.
Additionally, there might be issues with the CLI command for running evaluations. The run_evaluation_cli
function in the agenta-cli/agenta/cli/evaluation_commands.py
file uses hardcoded values for the app_name
and host
parameters. Ensure that these values are correctly set and that the CLI command is functioning as expected:
@click.group()
def evaluation():
"""Commands for evaluations."""
pass
@evaluation.command(name="run")
def run_evaluation_cli():
"""Run an evaluation."""
try:
client.run_evaluation(
app_name="sss",
host="http://localhost",
)
except Exception as ex:
click.echo(click.style(f"Error while running evaluation: {ex}", fg="red"))
By ensuring that the celery_worker
service is properly configured and running, verifying the evaluation status management in the code, checking the backend endpoints, and ensuring the CLI command is correctly configured, you should be able to resolve the issue with evaluations not stopping on self-hosted Agenta [1][2][3][4].
To continue talking to Dosu, mention @dosu.
from agenta.
Hi @shhhhhh2001 we might have an issue in the gh
docker compose. We are looking into it. In the mean time, can you please run agenta using the development mode flow, this should fix the issue:
git clone https://github.com/Agenta-AI/agenta.git
cd agenta
docker compose -f "docker-compose.yml" up -d --build
from agenta.
from agenta.
Related Issues (20)
- Refactore: TestsetTable.tsx component code for better readability HOT 2
- [AGE-296] Apps fail when output is string in 16.0
- Enhancement: save variant tabs order
- [Bug]: 'Create a New Variant' modal input data do not get cleared HOT 1
- [AGE-321] [Bug] Not all rows in evaluation comparison cannot be expanded
- [AGE-345] [bug] Some models are not working in the playground
- [Enhancement]: Table row's delete button placement and UI HOT 3
- [AGE-348] [bug] Errors are not correctly handled in the LLM applications HOT 4
- [AGE-357] [bug] Removing a variant used in an A/B test evaluation breaks the human evaluation view
- [AGE-365] Add new status for evaluation Queued HOT 2
- [AGE-370] Improve reproducibility of AI critique outputs HOT 1
- Add Exception handling in Agenta Observability HOT 1
- [AGE-391] [bug] LLM invocation errors are not correctly shown in the evaluation detail view HOT 1
- [AGE-399] [bug] Test creation in single model eval does not work in table view
- [AGE-112] [Evaluations] start new evaluation from previous evaluation
- Add encryption to LLM provider keys before saving it
- how can Agenta be integrated with ollama LLM platform HOT 1
- [AGE-433] [bug] New exact match and JSON evaluators are created with each served variant HOT 4
- Can I deploy without using port 80 ? HOT 5
- [AGE-451] Agent deployed by yourself, how to configure it when you want to Create a Custom App? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agenta.