metaflow.apps.
Obtain instances via AppDeployer.deploy() or AppDeployer.list_deployments().
Examples:
After deployment:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
metaflow.apps.
Obtain instances via AppDeployer.deploy() or AppDeployer.list_deployments().
Examples:
After deployment:
deployed = deployer.deploy()
print(deployed.public_url)
apps = AppDeployer.list_deployments(tags=[{"env": "staging"}])
for app in apps:
print(f"{app.name}: {app.public_url}")
# Get logs
for worker_id, lines in deployed.logs().items():
print(f"Worker {worker_id}: {len(lines)} log lines")
# Scale down
deployed.scale_to_zero()
# Clean up
deployed.delete()
import requests
response = requests.get(deployed.public_url, headers=deployed.auth())
Was this page helpful?