Skip to content

Feat/cm support #2212

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

Merged
merged 7 commits into from
Oct 20, 2023
Merged

Feat/cm support #2212

merged 7 commits into from
Oct 20, 2023

Conversation

gitmkn
Copy link
Collaborator

@gitmkn gitmkn commented Oct 13, 2023

No description provided.

@gitmkn gitmkn added the run check run check label Oct 14, 2023
paramMap["Module"] = helper.String(v.(string))
}

if v, _ := d.GetOk("start_time"); v != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里不需要使用GetOkExists吗

return err
}

time.Sleep(3 * time.Second)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里为啥需要sleep呢

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

因为修改配置后实例状态没有立即更新

Copy link
Collaborator

Choose a reason for hiding this comment

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

这里等待3秒时间够吗?如果3秒状态未返回会有问题吗

Copy link
Collaborator

@andrew-tx andrew-tx Oct 17, 2023

Choose a reason for hiding this comment

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

我们是不是应该封装一个公共的异步请求的方法呢?


time.Sleep(3 * time.Second)
service := MonitorService{client: meta.(*TencentCloudClient).apiV3Conn}
err = resource.Retry(1*readRetryTimeout, func() *resource.RetryError {
Copy link
Collaborator

Choose a reason for hiding this comment

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

修改完再查询一次的目的是什么呢

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

轮询等待实例状态ready

@gitmkn gitmkn added run check run check and removed run check run check labels Oct 20, 2023
Copy link
Collaborator

@andrew-tx andrew-tx left a comment

Choose a reason for hiding this comment

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

LGTM

@andrew-tx andrew-tx merged commit 5b9d4f0 into master Oct 20, 2023
@andrew-tx andrew-tx deleted the feat/cm-support branch October 20, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run check run check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants