Hello! How do I access the string value in a Parameter object? I'm passing a string Parameter to a flow throw the CLI as
prefect run --watch --id flowId --param strparam="paramValue"
. Then in the flow.py file, I am initializing outside the flow
strparam = Parameter("strparam", default "hello")
but I'm unable to access
. Prefect only sees this
6 months ago
Good morning everyone,I would like to know a really basic thing with Docker Agents.I have created a DockerAgent with all the necessary libraries which are needed for the flow to run. And then I started the Docker Agent using a docker-compose file. I can see the below logs:
[2022-03-0305:10:35,310] INFO - TranslationEvaluator Agent | Registering agent...
[2022-03-0305:10:36,108] INFO - TranslationEvaluator Agent | Registration successful!
[2022-03-0305:10:36,498] INFO - TranslationEvaluator Agent | Starting DockerAgent with labels ['On_Prem_Agent', 'IP:<>']
[2022-03-0305:10:36,498] INFO - TranslationEvaluator Agent | Agent documentation can be found at <https://docs.prefect.io/orchestration/>
[2022-03-0305:10:36,498] INFO - TranslationEvaluator Agent | Waiting for flow runs...
I then went and created a Flow and registered the flow as a docker. But when I try to run the flow from the prefectUI, the flow starts running and I see the below lines in the log of the DockerAgent:
[2022-03-03 05:20:32,889] INFO - TranslationEvaluator Agent | Deploying flow run 9cf17c39-877c-49e7-aae4-0451e320bae4 to execution environment...
/usr/local/lib/python3.7/dist-packages/prefect/agent/docker/agent.py:151: UserWarning: DockerAgent `docker_interface` argument is deprecated and will be removed from Prefect. Setting it has no effect.
[2022-03-03 05:20:33,579] INFO - TranslationEvaluator Agent | Completed deployment of flow run 9cf17c39-877c-49e7-aae4-0451e320bae4
[2022-03-03 05:20:34+0000] INFO - prefect.CloudFlowRunner | Beginning Flow runfor'On_Prem_Agent'
But it fails, with some libraries are missing to do the logic in one of the tasks in the flow.
I am under the impression that the agent I created needs to have all the libraries installed and the flow just run on the agent using them.What is the right way to do this, so that I can get this working.Thanks,
I am looking for a hotswappable 65% keyboard with rgb. Any suggestions out there?
6 months ago
I just would like to give my appreciation for this platform and community. Unfortunately in a while I'll have to change platform, but this platform and community have been everything I could've asked for and more.