Matthew Scanlon
01/12/2023, 3:29 PMSuccessfully registered 0 blocks
I have confirmed the file being registed is the intended python script. And worked up a minimal example that results in the same outcome. If i just do
class SampleBlock(Block):
test: str
It still fails to register. Please help!Bianca Hoch
01/12/2023, 3:38 PM$ prefect block register --file my_block.py
Matthew Scanlon
01/12/2023, 3:42 PMprefect block register --file blocks.py
MyBlock():
Field 1
Field 2
Field 3
Is there a way I can tell prefect "Field 1 will always be unique, use this as the key" So i can load the block via MyBlock('foo') where field 1 == 'foo'Bianca Hoch
01/12/2023, 3:53 PM