Skip to content
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

Add specific reasons for failed task submission #375

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

1daidai1
Copy link
Collaborator

@1daidai1 1daidai1 commented Nov 26, 2024

image

@RileyWen
Copy link
Collaborator

这块之前特意就写的不用string了 一边在errcode化 怎么这边还开始返祖了

@1daidai1
Copy link
Collaborator Author

如果不想这么改的话那我多增加几个枚举值吧,将参数错误这个枚举细化多几个枚举值

@1daidai1
Copy link
Collaborator Author

前端:PKUHPC/CraneSched-FrontEnd#218

@Nativu5
Copy link
Collaborator

Nativu5 commented Dec 11, 2024

先基于 Master 分支 rebase 一下吧。

@1daidai1 1daidai1 force-pushed the dev/addsubmitreason branch from 52eedd7 to bf52d55 Compare December 11, 2024 09:44
@@ -147,12 +151,86 @@ constexpr std::array<std::string_view, uint16_t(CraneErr::__ERR_SIZE)>
"Not enough nodes which satisfy resource requirements",
};

const std::unordered_map<crane::grpc::ErrCode, std::string_view> ErrCodeStrMap = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

ERR_INVALID_UID这边开始整体offset改小 然后用array存 做成直接寻址查找

@1daidai1 1daidai1 force-pushed the dev/addsubmitreason branch from a984104 to 047b895 Compare December 12, 2024 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants