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

Pass PREFECT_CORE_VERSION to Server #3651

Merged
merged 1 commit into from
Nov 11, 2020
Merged

Pass PREFECT_CORE_VERSION to Server #3651

merged 1 commit into from
Nov 11, 2020

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Nov 11, 2020

Summary

Passes PREFECT_CORE_VERSION during prefect server start for PrefectHQ/server#126

Changes

  • Passes PREFECT_CORE_VERSION to docker-compose
  • Adds PREFECT_CORE_VERSION to the server container env

Importance

Allow core version display in the UI

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)

Manually verified that this value populates when running prefect server start

I do not think a changes/ entry is meaningful here.

@@ -325,6 +325,9 @@ def start(
)
env.update(PREFECT_SERVER_DB_CMD=cmd)

# Pass the Core version so the Server API can return it
env.update(PREFECT_CORE_VERSION=prefect.__version__)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This could also use base_version[0] from above where base_version = prefect.__version__.split("+") or we could use default_tag which is either master if there are extra commits or core-VERSION but it seems useful to know if the prefect launching the server is dirty/has extra commits. Hmm.

Copy link
Member

Choose a reason for hiding this comment

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

Yea I agree, I like using __version__ unprocessed 👍

@joshmeek joshmeek merged commit 92ec574 into master Nov 11, 2020
@joshmeek joshmeek deleted the core-version-server branch November 11, 2020 23:05
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