Sign in

Ensure that the application is running

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

Check if our application is running. Check if all the services are running as expected.

cmd = f'cd /home/ubuntu/dagknows_src/app_docker_compose_build_deploy' op = _exei(instance_id, cmd) cmd = f'sudo docker-compose -f {docker_compose_file} ps' services = [ "postgres", "adminer", "elasticsearch", "documentation", "req-router", "conv-mgr", "apigateway", "ansi-processing", "settings", "conv-sse", "proxy-sse", "nlp", "dag", "nginx" ] broken_services = [] _problem = False for service in services: cmd1 = cmd + f' {service}' op1 = _exei(instance_id, cmd1) print(op1) if 'Up' not in op1: broken_services.append(service) _problem = True if broken_services: msg = f"Broken services: {broken_services}" msg_type = "ERROR" else: msg = "All the services are up and running" msg_type = "SUCCESS" context.log(msg_type, msg) print(msg) task_title = context.task_title context.job_context[task_title] = {"msg" : msg, "msg_type" : msg_type} app_is_up = not _problem context.skip_sub_tasks = app_is_up
copied
  1. 1

    Start the application

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    op = _exei(instance_id, "cd /home/ubuntu/dagknows_src/app_docker_compose_build_deploy") cmd = f'make runstaging' op = _exei(instance_id, cmd) time.sleep(30) msg = "Restarting the application" msg_type = "INFO" print(msg) task_title = context.task_title context.job_context[task_title] = {"msg" : msg, "msg_type" : msg_type}
    copied
    1