prefect.runner.storage
Functions
create_storage_from_source
url: The URL to create a storage object from. Supports git andfsspecURLs.pull_interval: The interval at which to pull contents from remote storage to local storage
- A runner storage compatible object
Classes
RunnerStorage
A storage interface for a runner to use to retrieve
remotely stored flow code.
Methods:
destination
pull_code
pull_interval
set_base_path
to_pull_step
GitCredentials
GitRepository
Pulls the contents of a git repository to the local filesystem.
Args:
url: The URL of the git repository to pull fromcredentials: A dictionary of credentials to use when pulling from the repository. If a username is provided, an access token must also be provided.name: The name of the repository. If not provided, the name will be inferred from the repository URL.branch: The branch to pull from. Defaults to “main”.pull_interval: The interval in seconds at which to pull contents from remote storage to local storage. If None, remote storage will perform a one-time sync.directories: The directories to pull from the Git repository (uses git sparse-checkout)
destination
is_current_commit
is_shallow_clone
is_sparsely_checked_out
pull_code
pull_interval
set_base_path
to_pull_step
RemoteStorage
Pulls the contents of a remote storage location to the local filesystem.
Args:
url: The URL of the remote storage location to pull from. SupportsfsspecURLs. Some protocols may require an additionalfsspecdependency to be installed. Refer to thefsspecdocs for more details.pull_interval: The interval in seconds at which to pull contents from remote storage to local storage. If None, remote storage will perform a one-time sync.**settings: Any additional settings to pass thefsspecfilesystem class.