Skip to main content

A Metaflow plugin to execute flows on Argo Workflows

Project description

Metaflow library for SAP AI Core

This Python library is a plugin that lets you generate workflow templates that can be executed in Argo or on SAP AI Core.

Sap-ai-core-metaflow is a Metaflow plugin to execute flows on Argo Workflows.

It adds Argo Workflows capabilities on top of Metaflow's @kubernetes decorator similar to step-functions and @batch.

Installation

pip install sap-ai-core-metaflow\[kubernetes\]

Documentation

For general information about how to use Metaflow, see the Metaflow documentation https://docs.metaflow.org.

For command-line help, use the command option --help

Configuration

The plugin requires configured Metaflow:

metaflow configure eks

Usage

To see a sub-commands' detailed information, run::

python 00-helloworld/helloworld.py argo [sub-command] --help

An example creating an argo workflow from the Metaflow hello world tutorial.

metaflow tutorials pull
cd metaflow-tutorials

python 00-helloworld/helloworld.py argo create
python 00-helloworld/helloworld.py argo trigger
python 00-helloworld/helloworld.py argo list-runs

Generate Argo Workflows Template

To store a generated template in a file, run the command:

python 00-helloworld/helloworld.py --with=kubernetes:secrets=default-object-store-secret argo create --only-json > helloworld.json

Note

Argo Workflows accepts both YAML and JSON templates. The Argo plugin always creates JSON.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sap_ai_core_metaflow-1.1.3-py3-none-any.whl (20.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page