Thread
#prefect-community
    Thomas Fredriksen

    Thomas Fredriksen

    7 months ago
    Hello everyone. We have a prefect-server instance running in our cluster, and we were wondering what would be the best way to organize the projects? Is it possible to create directory-like structure of the form
    {DOMAIN}/{PROJECT_NAME}
    (or longer) or similar? For example
    iot_devices/site-temperature-management
    Anna Geller

    Anna Geller

    7 months ago
    When you say projects, do you mean the Prefect 1.0 concept of projects or rather how you can structure e.g. a Github repository for flows?
    Thomas Fredriksen

    Thomas Fredriksen

    7 months ago
    prefect-projects, yes
    Anna Geller

    Anna Geller

    7 months ago
    Btw, Orion will make it much easier - check out this page for more details https://discourse.prefect.io/t/how-can-i-organize-my-flows-based-on-my-business-logic-or-team-structure/66
    Thomas Fredriksen

    Thomas Fredriksen

    7 months ago
    Cool! But is this possible in Prefect 1.0?
    Anna Geller

    Anna Geller

    7 months ago
    No, unfortunately not. Currently, projects don’t allow a nested structure as you described. So you could not have one project called
    iot_devices
    and a child project of it called
    site-temperature-management
    . But in Orion you could have nested tags:
    >>> @flow
    >>> def my_flow():
    >>>     with tags("a", "b"):
    >>>         with tags("c", "d"):
    >>>             my_task()  # has tags: a, b, c, d
    >>>         my_task()  # has tags: a, b
    Thomas Fredriksen

    Thomas Fredriksen

    7 months ago
    Awesome to hear Orion reaching maturity. Really looking forward to see it graduate from beta
    Anna Geller

    Anna Geller

    7 months ago
    So in 1.0 I would probably try to bring more structure in the code organization. E.g. you can still have a project called iot_devices, and you can have e.g. a Github repository for this project and this repository may have directories corresponding to each project
    not sure what Git platform are you using, but many allow organization through projects or namespaces (e.g. Gitlab, Bitbucket)
    Thomas Fredriksen

    Thomas Fredriksen

    7 months ago
    we are already doing that, but the Web UI is getting a bit crowded
    Anna Geller

    Anna Geller

    7 months ago
    Gotcha. Doing something like this would be hard in 1.0 but Orion will definitely make this easier
    Thomas Fredriksen

    Thomas Fredriksen

    7 months ago
    Perfect, thank you!