• Apoorva Desai

    Apoorva Desai

    6 months ago
    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 
    "paramValue"
     . Prefect only sees this 
    <Parameter: strparam>
    Apoorva Desai
    Anna Geller
    4 replies
    Copy to Clipboard
  • Sen

    Sen

    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-03 05:10:35,310] INFO - TranslationEvaluator Agent | Registering agent...
    [2022-03-03 05:10:36,108] INFO - TranslationEvaluator Agent | Registration successful!
    [2022-03-03 05:10:36,498] INFO - TranslationEvaluator Agent | Starting DockerAgent with labels ['On_Prem_Agent', 'IP:<>']
    
    [2022-03-03 05:10:36,498] INFO - TranslationEvaluator Agent | Agent documentation can be found at <https://docs.prefect.io/orchestration/>
    
    [2022-03-03 05: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.
    
      UserWarning,
    
    [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 run for '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, Sen
    Sen
    Abhishek
    4 replies
    Copy to Clipboard
  • Antti Tupamäki

    Antti Tupamäki

    6 months ago
    Docks prefect give Internal Server Error - Request ID: 01FXQBPXZ25Q9W9CNRZW0A1A37
    Antti Tupamäki
    Anna Geller
    +1
    7 replies
    Copy to Clipboard
  • Kevin Kho

    Kevin Kho

    6 months ago
    I am looking for a hotswappable 65% keyboard with rgb. Any suggestions out there?
    Kevin Kho
    Chris Reuter
    +2
    15 replies
    Copy to Clipboard
  • Andrea Nerla

    Andrea Nerla

    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.
    Andrea Nerla
    Anna Geller
    2 replies
    Copy to Clipboard
  • Mike Grabbe

    Mike Grabbe

    6 months ago
    I'm not sure where to post this feedback, so I'll try here. I'm reading through the Prefect Orion docs, and on the Flow and task configuration page, the Orchestration Policies link under Additional Reading returns a 404 not found error.
    Mike Grabbe
    Kevin Kho
    +1
    4 replies
    Copy to Clipboard
  • r

    Ramzi A

    6 months ago
    Is there a prefect 2.0 slack channel?
    r
    Kevin Kho
    2 replies
    Copy to Clipboard
  • Royzac

    Royzac

    6 months ago
    is there a pandas community channel?
    Royzac
    Kevin Kho
    +1
    4 replies
    Copy to Clipboard
  • Abhishek

    Abhishek

    6 months ago
    I have a Prefect joke, but it’s “Scheduled”.
    Abhishek
    1 replies
    Copy to Clipboard