Comments (4)
May I ask for your use case specifically. Not exactly what you are asking for but we will soon have a runner (ie: able to run in python) but Metaflow will handle the running itself. It should be equivalent to what you are trying to do here (unless you want to do funky things between steps). See here: #1732. This should be out soon.
from metaflow.
May I ask for your use case specifically. Not exactly what you are asking for but we will soon have a runner (ie: able to run in python) but Metaflow will handle the running itself. It should be equivalent to what you are trying to do here (unless you want to do funky things between steps). See here: #1732. This should be out soon.
Thank you for your response and the ongoing developments in Metaflow. My main objective is to simplify the execution of Metaflow workflows, transitioning from the traditional command python train.py run to simply python train.py. This adjustment would enhance the usability and integration of Metaflow within our automation scripts and larger application ecosystem.
Here is how I am currently setting up the workflow to achieve this:
from metaflow import FlowSpec, step
class ExampleFlow(FlowSpec):
@step
def start(self):
print("This is the start step.")
self.next(self.end)
@step
def end(self):
print("This is the end step.")
if __name__ == '__main__':
ExampleFlow().run()
By including ExampleFlow().run() in the if name == 'main': block, the workflow initiates directly when the script is executed with python train.py. This setup works for our basic workflows, and I am curious to know if this method aligns with best practices within the Metaflow framework.
from metaflow.
@sungreong would you be able to use the functionality called out in this blog - https://outerbounds.com/blog/metaflow-in-notebooks-and-scripts
from metaflow.
@sungreong, please feel free to reopen this issue if you have further questions or comments
from metaflow.
Related Issues (20)
- Display full trigger event payload in metaflow ui HOT 1
- ArgoEvents.publish attempts to make requests even when url is None HOT 1
- @conda/@pypi appears to remove CUDA instructions for GPU HOT 4
- support json event payload for local testing through --trigger
- Caching steps HOT 1
- Silent failure to trigger Argo Workflow from CLI HOT 2
- ServiceException (code 500): run_number is out of range for type integer, when running with local metadata HOT 3
- An error occurred with Micromamba while creating a workflow containing @pypi HOT 2
- micromamba complain from @pypi_base about package incompatibility in intel macos HOT 13
- argo-workflows create --only-json doesn't export sensor configuration
- Argo Workflows Overrides Image in @kubernetes annotation. HOT 2
- Errors resuming a workflow HOT 2
- S3 External Client Option Ignored by s3op
- metaflow failed to resume a flow HOT 1
- `MetaflowData.__getattr__` should raise `AttributeError` on failure
- Request: Allow shadowing in metaflow_extensions HOT 5
- Metadata request (/flows/<flowname>) failed (code 502) HOT 8
- METAFLOW_S3_ENDPOINT_URL env variable not working in 2.12.17
- GPU constraint of 0 added to Kubernetes step spec, making it unsatisfiable
- Error on argo-workflows create HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metaflow.