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

Prettify output #200

Merged
merged 2 commits into from
Jul 4, 2017
Merged

Conversation

typhoonzero
Copy link
Collaborator

@typhoonzero typhoonzero commented Jul 4, 2017

Fix #195

Note here's still a problem when train exited with error, submit with:

-entry "sleep 30 && exit 136"

will not show message when paddlecloud get workers [jobname]

elif [ $ret -eq 1 ] ; then
echo "General Error" > /dev/termination-log
elif [ $ret -eq 134 ] ; then
echo "Program Abort" > /dev/termination-log
Copy link
Collaborator

Choose a reason for hiding this comment

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

Deal with an unknown return code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unknown就不现实message了,ret code还是可以看到的

w := tabwriter.NewWriter(os.Stdout, 0, 0, 3, ' ', 0)
if len(items) >= 0 {
fmt.Fprintf(w, "NUM\tNAME\tSUCC\tFAIL\tSTART\tCOMP\tACTIVE\t\n")
fmt.Fprintf(w, "NAME\tACTIVE\tSUCC\tFAIL\tSTART\tCOMP\tPS_NAME\tPS_READY\tPS_TOTAL\t\n")
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the PS_NAME used for? Maybe only print the stats of PServer?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

replicaset的name不过对于用户来说没什么用了倒是。可以去掉

Copy link
Collaborator

@Yancey1989 Yancey1989 left a comment

Choose a reason for hiding this comment

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

LGTM

@typhoonzero typhoonzero merged commit 453c2c0 into PaddlePaddle:develop Jul 4, 2017
@typhoonzero typhoonzero deleted the prettify_output branch November 2, 2017 10:08
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.

None yet

2 participants