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

Block auto-registration is skipped when switching databases #7347

Closed
4 tasks done
desertaxle opened this issue Oct 27, 2022 · 0 comments · Fixed by #7350
Closed
4 tasks done

Block auto-registration is skipped when switching databases #7347

desertaxle opened this issue Oct 27, 2022 · 0 comments · Fixed by #7350
Assignees
Labels
bug Something isn't working component:blocks Related to the Prefect Blocks API status:in-progress Someone is working on this, check-in here before beginning new work

Comments

@desertaxle
Copy link
Member

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Prefect documentation for this issue.
  • I checked that this issue is related to Prefect and not one of its dependencies.

Bug summary

A community user reported that changing the database that backed their local Orion instance resulted in block disappearing from their UI. The user resolved the issue by deleting their .prefect folder.

Thread: https://prefect-community.slack.com/archives/CL09KU1K7/p1666812855264589

Reproduction

- Start up an Orion server with `prefect orion start`
- View blocks in UI
- Change database with `prefect config set PREFECT_ORION_DATABASE_CONNECTION_URL="new_url"
- View lack of blocks in the UI

Error

No response

Versions

Version:             2.6.4
API version:         0.8.2
Python version:      3.10.6
Git commit:          51e92dda
Built:               Thu, Oct 20, 2022 3:11 PM
OS/Arch:             darwin/x86_64
Profile:             local
Server type:         ephemeral
Server:
  Database:          sqlite
  SQLite version:    3.39.3

Additional context

This is likely due to block auto-registration memoization. Memoization should be updated so that the block auto-registration memostore key is no longer valid when the orion database URL is changed.

@desertaxle desertaxle added bug Something isn't working priority:medium component:blocks Related to the Prefect Blocks API status:in-progress Someone is working on this, check-in here before beginning new work labels Oct 27, 2022
@desertaxle desertaxle self-assigned this Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:blocks Related to the Prefect Blocks API status:in-progress Someone is working on this, check-in here before beginning new work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant