Replies: 1 comment 2 replies
-
hi @wigging
correct, the server is not the place where your code runs. your code runs "client-side" someplace, which could be
that client-side place just needs to have in prefect we have a concept of deployments so that you can control all the details of that client side place your code runs via work pools for example, you might build a custom |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a basic flow example that imports the NumPy package as shown below. This code resides on my local machine in a uv project where I define the local dependencies.
Before running the code, I set the Prefect API URL environment variable to point to the Prefect server running on a separate computer on my network:
Next, I run the Python file with uv as follows:
$ uv run example.py
In the Prefect dashboard on my other computer, I see the output from the print statements on the run page. But the environment on the other computer where the Prefect server is running does not have the NumPy package. So how is the Prefect server running this code? Is the server automatically installing the NumPy package before it runs the Python code? Or does the Python code not actually run on the server machine?
Beta Was this translation helpful? Give feedback.
All reactions