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 agent registration for server users #3385

Merged
merged 19 commits into from
Sep 29, 2020
Merged

Add agent registration for server users #3385

merged 19 commits into from
Sep 29, 2020

Conversation

joshmeek
Copy link

@joshmeek joshmeek commented Sep 24, 2020

Summary

This PR enables agent registration with server.

Agent persistence was added to server in PrefectHQ/server#58 and improved in PrefectHQ/server#95. Exposing agent persistence in the UI for server users is added in PrefectHQ/legacy-ui#249.

Changes

No longer bounds registration call for agents to Cloud backend. Adds route for retrieving agent configuration based on an agent config id (to be used in a later enhancement)

Importance

Improve agent experience!

Checklist

This PR:

  • adds new tests (if appropriate)
  • adds a change file in the changes/ directory (if appropriate)
  • updates docstrings for any new functions or function arguments, including docs/outline.toml for API reference docs (if appropriate)

@joshmeek joshmeek requested a review from jcrist as a code owner September 24, 2020 13:34
@joshmeek joshmeek requested a review from cicdw September 24, 2020 13:34
@codecov
Copy link

codecov bot commented Sep 24, 2020

Codecov Report

Merging #3385 into master will decrease coverage by 0.02%.
The diff coverage is 72.22%.

Copy link
Member

@cicdw cicdw left a comment

Choose a reason for hiding this comment

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

minor doc string requests, otherwise I think this makes sense!

src/prefect/agent/agent.py Outdated Show resolved Hide resolved
src/prefect/agent/agent.py Outdated Show resolved Hide resolved
Copy link
Member

@cicdw cicdw left a comment

Choose a reason for hiding this comment

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

else:
self.logger.warning(
f"Unable to register agent to {self.client.api_server}. "
f"Make sure the server is running on the latest version."
Copy link
Member

Choose a reason for hiding this comment

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

looks good

@joshmeek joshmeek merged commit ba69f90 into master Sep 29, 2020
@joshmeek joshmeek deleted the agent_persistence branch September 29, 2020 21: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.

2 participants