• Nike Gurin-Petrovych

    Nike Gurin-Petrovych

    1 year ago
    Is there a way to register flows recursively from a folder?
    prefect register --project "my project" --path /api/flows/
    registers only flows that are in
    api/flows
    but not in
    api/flows/subfolder
    Nike Gurin-Petrovych
    Michael Adkins
    2 replies
    Copy to Clipboard
  • Josselin Girault

    Josselin Girault

    1 year ago
    Hello ! I've found a possible bug, can't investigate a lot more so I'll be posting here. I've been using Gitlab storage, and after a package update I started getting
    GitlabGetError 404: Project Not Found
    errors when fetching flows. Turns out
    python-gitlab
    broke something from 2.7.0 onwards. I assume it's not an issue for prefect to solve but maybe it can help someone.
    Josselin Girault
    Kevin Kho
    +2
    6 replies
    Copy to Clipboard
  • a

    Anton Rasmussen

    1 year ago
    Hi all, Using the Standard cloud subscription, somehow, we're now in a situation where some team members have the role Administrator others Read Only, and I'm unable to change these roles. Is it expected to not be able to change roles (as Administrator) on this plan? If so, how do we get all users to the same role (and what role would that be?). Thanks!
    a
    Kevin Kho
    3 replies
    Copy to Clipboard
  • thebuleon29

    thebuleon29

    1 year ago
    Hi guys, I am looking at the possibility to have loops in a flow. The existing LOOP feature that I found in the doc is interesting, but would it be possible to do the same with several tasks ? Like for example Task A produces a result, then Task B uses this result to produce another one, then Task C uses this second result, does its own thing with it and, if a condition is not met, calls A again. I know it sort of contradicts the meaning of a DAG, but it would be really useful for us... Is it an existing feature?
    thebuleon29
    Kevin Kho
    6 replies
    Copy to Clipboard
  • Mark McDonald

    Mark McDonald

    1 year ago
    Hi - sorry to keep peppering yall with questions about the automations api. I'm trying to add/configure automations into my flow deployment process. I've gotten it figured out with state change automations, but I'm struggling with SLA automations. Basically, I'm trying to write a query to see if a SLA automation already exists for a given flow_group_id and if it does not, I will create the flow_sla_config, and then the flow_sla_failed_hook. So my question is, how can I query if a flow_sla_config exists for a given flow (using the flow_group_id)?
    Mark McDonald
    2 replies
    Copy to Clipboard
  • Nike Gurin-Petrovych

    Nike Gurin-Petrovych

    1 year ago
    Hey all! Is there a way to see all flows as a graph? Having a lot of dependencies between them (the dependencies are managed with StartFlowRun) I'd like to visually see them and trigger specific flows manually. I'm using Prefect Cloud.
    Nike Gurin-Petrovych
    Kevin Kho
    +1
    4 replies
    Copy to Clipboard
  • m

    matta

    1 year ago
    Double-checking - I need all the dependencies for a Flow installed on the machine that Registers it, right? Even if it runs elsewhere?
    m
    Kevin Kho
    +1
    7 replies
    Copy to Clipboard
  • m

    matta

    1 year ago
    Seeing this.
    You have no currently running Agents configured to pick up flow runs without labels
    How do I set a Local Agent to pick up flow runs without labels? And/or see what labels my agents are looking for? I don't see where my Agent's labels are.
    m
    Kevin Kho
    11 replies
    Copy to Clipboard
  • m

    matta

    1 year ago
    Hrm, just tried to use a flow with a
    StartFlowRun
    task, with the storage for both being in
    git
    . The underlying flow works, but the new flow fails with
    GitProtocolError('Repository not found.')
    m
    Kevin Kho
    6 replies
    Copy to Clipboard
  • CA Lee

    CA Lee

    1 year ago
    Hello, has anyone run into Prefect registering the same script twice when calling
    prefect register
    from the CLI? Storage: S3 Execution: ECS Prefect version:
    0.14.22
    vscode ➜ /workspaces/flowstate/flows (main ✗) $ prefect register --project prefect_project_name -p project_path
    
    Collecting flows...
    
    Processing 'project_path/flow_one.py':
      Building `S3` storage...
    [2021-06-26 10:10:44+0000] INFO - prefect.S3 | Uploading script /workspaces/github_project/flows/prefect_project_name/flow_one.py to flow_one/2021-06-26t10-10-44-047892-00-00 in aws-ecs-flows
      Registering 'flow_one'... Done
      └── ID: 41b7ea82-6cee-47c9-871c-0155267e6373
      └── Version: 1
    
    Processing 'project_path/flow_two.py':
      Building `S3` storage...
    [2021-06-26 10:10:45+0000] INFO - prefect.S3 | Uploading script /workspaces/github_project/flows/prefect_project_name/flow_one.py to flow_one/2021-06-26t10-10-44-047892-00-00 in aws-ecs-flows
    -------------------------------------------------------------------------------------------------------------------- * SAME FILE * -------------------------------------------------------------
    [2021-06-26 10:10:45+0000] INFO - prefect.S3 | Uploading script /workspaces/github_project/flows/prefect_project_name/flow_one.py to flow_two/2021-06-26t10-10-45-180059-00-00 in aws-ecs-flows
      Registering 'flow_two'... Done
      └── ID: f03469a7-c463-486f-a032-53d0fd4f265c
      └── Version: 1
    
    ======================== 2 registered ========================
    This results in an error when attempting to execute flow_two:
    Failed to load and execute Flow's environment: ValueError("Flow 'flow_two' not found in file. Found flows:\n- 'flow_one'")
    CA Lee
    Kevin Kho
    13 replies
    Copy to Clipboard