You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Support spinning a single metaflow step (Rebased) (#2506)
To test `spin` on a new flow you can do the following:
### Simple case:
```
python <flow_name.py> --environment=conda spin <step_name>
```
### Pass in specific pathspec:
```
python runtime_dag_flow.py --environment=conda spin RuntimeDAGFlow/13/step_c/275232971
```
### Pass in custom artifacts via module:
```
python runtime_dag_flow.py spin RuntimeDAGFlow/13/step_d/275233082 --artifacts-module ./my_artifacts.py
```
### Skip decorators (including the whitelisted ones):
```
python complex_dag_flow.py --environment=conda spin step_d --skip-decorators
```
### Use with Runner API:
```
with Runner('complex_dag_flow.py', environment="conda").spin(
"<Some Val>",
artifacts_module='./artifacts/complex_dag_step_d.py',
) as spin:
print("-" * 50)
print(f"Running test for step: step_a")
spin_task = spin.task
print(f"my_output: {spin_task['my_output']}")
assert spin_task['my_output'].data == [-1]
```
See the tests for more examples on hot to use this command.
---------
Co-authored-by: Romain Cledat <rcledat@netflix.com>
Copy file name to clipboardExpand all lines: README.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,5 +60,3 @@ We'd love to hear from you. Join our community [Slack workspace](http://slack.ou
60
60
61
61
## Contributing
62
62
We welcome contributions to Metaflow. Please see our [contribution guide](https://docs.metaflow.org/introduction/contributing-to-metaflow) for more details.
0 commit comments