Skip to content

Add the crash reason and timestamp to the ActorStatus - #1867

Open
Luiz Oliveira (laoj2) wants to merge 1 commit into
agent-substrate:mainfrom
laoj2:crash-reason
Open

Luiz Oliveira (laoj2) wants to merge 1 commit into
agent-substrate:mainfrom
laoj2:crash-reason

Conversation

@laoj2

Copy link
Copy Markdown
Collaborator

Added a new field to actor status that has the crash reason (e.g., the atelet response error) and the timestamp of the crash for better UX.

// ateletCrashMessage describes a failed atelet call with the error text atelet
// returned, since its gRPC code is Unknown for most failures.
func ateletCrashMessage(rpc string, err error) string {
return fmt.Sprintf("atelet %s: %s", rpc, status.Convert(err).Message())

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

note that we're exposing the bare error from atelet here. Perhaps we should just write the rpc status code? (they're mostly Unknown though).

@zoez7 Zoe Zhao (zoez7) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

needs rebase

@laoj2

Copy link
Copy Markdown
Collaborator Author

Rebased

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.

2 participants