Netflix / metaflow

:rocket: Build and manage real-life ML, AI, and data science projects with ease!
https://metaflow.org
Apache License 2.0
7.8k stars 738 forks source link

deployer with new injection mechanism #1910

Open madhur-ob opened 6 days ago

madhur-ob commented 6 days ago

Usage as follows:

import time
from metaflow.plugins.deployer import Deployer

ar = Deployer(flow_file="../../try.py").argo_workflows(name="madhur")
ar_obj = ar.create()
print(ar_obj.production_token)
result = ar_obj.trigger(myparam=300)
print(result.status)
run = result.run
while run is None:
    print("trying again...")
    run = result.run
print(result.run)
print(result.status)
time.sleep(120)
print(result.terminate())