Skip to content

experiment manager 重构#801

Draft
hyponet wants to merge 8 commits intokaiyuanshe:masterfrom
hyponet:add_api_test
Draft

experiment manager 重构#801
hyponet wants to merge 8 commits intokaiyuanshe:masterfrom
hyponet:add_api_test

Conversation

@hyponet
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants