Why is this important for you to log that information? Is this to print some version or check whether a package has been installed? You can log the output of pip show or log package version to satisfy the same objective
Anna Geller
08/31/2022, 8:16 PM
You could open an issue but given it's 1.0 I would not expect anyone working on this. We could check how we can log that information better in 2.0 though
s
Shaoyi Zhang
08/31/2022, 8:19 PM
When using EXTRA_PIP_PACKAGES with Kuberentes agent, if the pip install fails, there’s no way for users to see the actual failure from Cloud UI. Only people with access to the Kubernetes cluster can view the job pod logs.
a
Anna Geller
08/31/2022, 9:32 PM
In that case I would recommend tackling the root cause of the problem which is packaging -- the EXTRA_PIP_PACKAGES is meant only for getting started, I think for production it would be better to build your own Docker image and reference that instead of installing packages at runtime
s
Shaoyi Zhang
08/31/2022, 9:36 PM
As a software engineer, I hate EXTRA_PIP_PACKAGES and I never use it, even for getting started. However, data analysts like that and some of them have no idea of Docker and Kuberentes.
Shaoyi Zhang
08/31/2022, 9:40 PM
Thank you for your suggestions though. I think the walkaround will be internal tooling. For example, we can process the flow code in CI/CD and explicitly install packages from within the flow instead of relying on the entrypoint.sh from Prefect official image.
Bring 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.