-
Notifications
You must be signed in to change notification settings - Fork 186
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
[Bug] Evaluation can't stop running on self-host agenta #1755
Comments
The issue with evaluations not stopping on self-hosted Agenta could be related to the configuration of the Celery worker. The To resolve this issue, ensure that the 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 docker-compose -f docker-compose.gh.yml ps If the docker-compose -f docker-compose.gh.yml up -d celery_worker Additionally, check the logs for the docker-compose -f docker-compose.gh.yml logs celery_worker If the Moreover, you should also check the backend code, specifically in the Additionally, there might be issues with the CLI command for running evaluations. The @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 |
Hi @shhhhhh2001 we might have an issue in the
|
fixed |
Describe the bug
Any kind of evaluation can't stop running on self-host agenta.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Complete running very quickly if there are 3 data entries (e.g. 3s on the cloud).
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Important Context
It worked well before you revised the code evaluator yesterday. All the variants and datasets on the screenshots are the same between the cloud and our host.
Network Logs in the Browser:
Docker Containers Information:
sometimes, the error 502 will show up in the UI, but there's no log in the agenta-backend docker container's log.
After deleting the evaluation job on UI, it throws out 204 and 500.
Please make sure to provide all the requested information to expedite the debugging process. Thank you for helping us improve our project!
The text was updated successfully, but these errors were encountered: