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

make agent starts isolated #540

Merged
merged 6 commits into from
Jul 18, 2022
Merged

Conversation

aomerk
Copy link
Contributor

@aomerk aomerk commented Jul 15, 2022

No description provided.

@aomerk aomerk changed the title add timeout to agent start make agent starts isolated Jul 15, 2022
}
return nil
if err != nil {
log.Errorf("failed to start agent: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

one thing we started doing in the rest of the system is this kind of thing:

logger := log.WithFields(...agentID info...etc)
...
logger.WithError(err).Error("context of error")

so that the log can be parsed/structured and include relevant data (like which agent is failing)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense, added. (eyeballed the fields)

@canercidam canercidam merged commit c31479e into master Jul 18, 2022
@canercidam canercidam deleted the hotfix/agent-start-cancellation branch July 18, 2022 11:45
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

3 participants