Андрей Насонов

    Андрей Насонов

    1 month ago
    Hi! We're moving from Prefect to Prefect2.0. We would like to use our Gitlab repository as a storage for flows, as we used to with GitlabStorage in Prefect1.0. I'm trying to use RemoteFileSystem
    from prefect.filesystems import RemoteFileSystem
    gitlab_block = RemoteFileSystem(
            basepath='<git://path/to/repo>',
            settings={
            'key': "GITLAB_USER",
            'secret': "GITLAB_TOKEN"})
    gitlab_block.save('flows_repo')
    This leaves me with
    prefect.exceptions.PrefectHTTPStatusError: Client error '422 Unprocessable Entity' for url '<http://ephemeral-orion/api/block_documents/>'
    I might be misusing RemoteFileSystem something fierce, could you please guide me in the right direction? Big thanks!
    a

    Anton L.

    1 month ago
    I guess, the question was a bit different. Git supports
    fsspec
    protocol. How to use
    RemoteFileSystem
    , that implements
    fsspec
    , to access flows stored in Git?
    Anna Geller

    Anna Geller

    1 month ago
    Git is version control system, not a storage system - at least that's how I view this. We may consider adding this as storage block but this is not in scope at the moment. I would encourage you to leverage Git to trigger a CI/CD pipeline that will then deploy your code eg to S3