Aaron Taylor
01/03/2025, 5:46 AMWEB_CONCURRENCY=2 PREFECT_API_DATABASE_CONNECTION_URL='sqlite+aiosqlite:////tmp/prefect-test.db' prefect server start
and if you initialize the database first with prefect server database upgrade -y
and then set PREFECT_API_DATABASE_MIGRATE_ON_START='False'
a similar error occurs for the block type. The issue happens for a Postgres database as well.
I've not been able to find a way to disable auto-registration of the block types and manually do it ahead of time.
Is there a workaround for this, or more broadly could Prefect be enhanced to better support these init operations within multiple workers running at once for the server?