good point about concurrency, this is intended to be sequential only so I've added that to the flow def, even though sequential is the default (I think?) good to be explicit about it so there are no issues with the state block + concurrency
on the exception handling, it seems you are supposed to use ValueError when loading and it indicates BlockNotFound: https://docs.prefect.io/api-ref/prefect/blocks/core/#prefect.blocks.core.Block.load
under the Raises section:
ValueError
If the requested block document is not found.
r
redsquare
04/06/2023, 6:08 AM
ok, not seen that - it still never sits easy with me to use exceptions for non exceptional circumstances!
however it looks like EAFP coding style is the pythonic way