Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

experiment manager 重构 #801

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

hyponet
Copy link
Collaborator

@hyponet hyponet commented Apr 19, 2020

重构环境分配的逻辑,并顺便解决历史遗留 issue

try:
api_instance = client.CoreV1Api(self.api_client)
api_instance.list_namespaced_pod(self.namespace, timeout_seconds=timeout)
return {HEALTH.STATUS: HEALTH_STATUS.OK}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要检查一下pod运行状态再report么

except HTTPError:
return {
HEALTH.STATUS: HEALTH_STATUS.ERROR,
HEALTH.DESCRIPTION: "Connect K8s ApiServer {} error: connection timeout".format(self.api_url),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api_url显示出来会不会不太好

celery_app.conf.update(
CELERY_BROKER_URL=safe_get_config("CELERY_BROKER_URL", ""),
CELERY_RESULT_BACKEND=safe_get_config("CELERY_RESULT_BACKEND", ""),
CELERY_DEFAULT_EXCHANGE='oph',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants