• Vackar Afzal

    Vackar Afzal

    3 months ago
    Hi All, I am trying out Prefect 2 for the first time I have a flow that imports some functions from another (local) python module In prefect 1, we were able to do something like
    storage.files.update(THE_FILE)
    to bring in the dependency What’s the recommended approach to achieve something similar in prefect 2
    Vackar Afzal
    Kevin Kho
    3 replies
    Copy to Clipboard
  • s

    Sander

    3 months ago
    Hi, there is this LOOP construct in 1.2. I was wondering when that will become available in 2.0. Thanks!
    s
    Kevin Kho
    2 replies
    Copy to Clipboard
  • Sylvain Hazard

    Sylvain Hazard

    3 months ago
    Hey there ! I have a mapped task for uploading files through an API call and I'd like to avoid having to authenticate to the API for every task but my client is not JSON serializable and cannot be passed as a parameter. I'm pretty sure I've seen a way to properly deal with this before in the docs but can't seem to find it again. Any idea or advice ?
    Sylvain Hazard
    Kevin Kho
    7 replies
    Copy to Clipboard
  • s

    Sander

    3 months ago
    Hi! Is there a way to start an agent via a python script instead of the command line?
    s
    1 replies
    Copy to Clipboard
  • John Mizerany

    John Mizerany

    3 months ago
    Hi all, would anyone know why a flow would be running tasks in a different order than expected? It seems that the flow that I am running locally is constantly changing the order of how tasks are run. I haven't had this issue until recently
    John Mizerany
    Kevin Kho
    2 replies
    Copy to Clipboard
  • l

    Lucas Hosoya

    3 months ago
    Hey! I'm working with Prefect in Azure using K8s, ACR and Prefect Cloud. Is there a setup for affinity or taints/tolerations? I'm trying to put tolerations in the KubernetesRun template and the DaskExecutor as well. It works for tolerations, but on the DaskExecutor, it gives this error:
    RuntimeError: Missing dependency kubectl. Please install kubectl following the instructions for your OS.
    Does anyone know about this error with K8s tolerations?
    l
    Kevin Kho
    +3
    14 replies
    Copy to Clipboard
  • Lucas Rodrigues

    Lucas Rodrigues

    3 months ago
    Hi! I know I can delete a flow using
    from prefect.client import Client
    
    flow_id = "..."
    
    client = Client()
    client.graphql(
        """
        mutation {
        delete_flow(input: {flow_id: "%s"}) {
            success
        }
        }
        """ % flow_id
    )
    But how can I delete all versions of a given flow? It looks like the Flow Group ID is constant over the flow versions. I tried to replaced it into above snippet but didn't work.
    Lucas Rodrigues
    Kevin Kho
    2 replies
    Copy to Clipboard
  • m

    Marcin Grzybowski

    3 months ago
    Hi, I run some flows directly from vs code, and I stopped them manually from IDE before they finished. It was a few hours ago. In meantime I restarted computer and UI still shows me them as running. Is that normal? How can I clean them?
    m
    Kevin Kho
    2 replies
    Copy to Clipboard
  • Patrick Tan

    Patrick Tan

    3 months ago
    Hi, running this in container (AWS ECS) failed but works running from desktop computer
    Patrick Tan
    Kevin Kho
    9 replies
    Copy to Clipboard
  • a

    Andreas Nigg

    3 months ago
    Hey, I'm currently testing prefect 2.0 as part of our new data warehouse and so far I'm very impressed! I'd like to use prefect cloud 2.0 and run my flows in my k8s cluster. There is this documentation here: https://orion-docs.prefect.io/tutorials/kubernetes-flow-runner/ - which shows how to implement my use case for a OSS orion server. How would this example work for prefect cloud 2.0? Do I simply use the manifest as output from prefect orion kubernetes-manifest and only deploy the agent, role and role binding but not the API? And for the PREFECT_API_URL env variable I use https://api-beta.prefect.io/api/... instead of orian:4200?
    a
    Anna Geller
    5 replies
    Copy to Clipboard