Kyler Suden
02/20/2025, 6:39 PMassert block_type, f"Block type {block_document.block_type_id} not found"
I can trace it back in the git hub files like this. The create_block_document function contains this code
block_type = await models.block_types.read_block_type(
session=session, block_type_id=block_document.block_type_id
)
Which we can trace further to here
@db_injector
async def read_block_type(
db: PrefectDBInterface,
session: AsyncSession,
block_type_id: UUID,
) -> Union[BlockType, None]:
"""
Reads a block type by id.
Args:
session: A database session
block_type_id: a block_type id
Returns:
BlockType: an ORM block type model
"""
return await session.get(db.BlockType, block_type_id)
So clearly, the block type UUID I got from one servers db is not the same as the new servers db. How is this possible if both servers are built with the exact same prefect image? Wouldn't both servers use the same UUID to represent, say a AWS Credentials type block? Or am I confused how this worksMarvin
02/20/2025, 6:39 PMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by