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

Prefix flow name with username for uniqueness #374

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

bhperry
Copy link
Contributor

@bhperry bhperry commented Jun 6, 2022

This is one potential fix for a timing bug in the integration-tests. Occasionally the prefect-resource-manger test will fail because it registers the flow using the notebook then almost immediately queries for the flow's ID by name in a separate script. Since the flow's name is always the same sometimes the prefect API responds with the ID for the previous version instead of the newest one, and then creating a new flow run fails because that version has been archived (example)

The other notebooks in this example don't have this problem because they prefix flow names with the username, and in integration-tests the usernames contain UUIDs. So the flow is always unique.

Outside of the context of integration-tests, it seems sensible to have the same naming pattern across all of the flows created in this example.

@bhperry bhperry requested review from jnolis and jsignell as code owners June 6, 2022 19:19
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Contributor

@jsignell jsignell left a comment

Choose a reason for hiding this comment

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

lgtm!

@bhperry bhperry merged commit 1ad77c3 into main Jun 7, 2022
@bhperry bhperry deleted the bhperry/prefect-flow-unique-name branch June 7, 2022 14:12
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