Prefect repo maintainers: Would someone mind taking another look at this closed issue and my comment at the bottom? I think there's a pretty serious (but subtle) bug regarding what happens when prefect modules are imported. Namely, merely importing a class or method from a Prefect module
does things before you've even called it.
https://github.com/PrefectHQ/prefect/issues/4331
Would be happy to write up a new issue if that would be helpful.