Skip to content

Commit 9e6bfcc

Browse files
RomeoVclaude
andcommitted
Fix updaterun API syntax in tutorial and examples
Fixes incorrect positional argument usage and string type for status parameter. The updaterun function requires keyword arguments and RunStatus enum values. Before: updaterun(mlf, exprun, "FINISHED") After: updaterun(mlf, exprun; status=RunStatus.FINISHED) Fixes #64 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent b5bad10 commit 9e6bfcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ logartifact(mlf, exprun, plotfilename)
109109
rm(plotfilename)
110110

111111
# complete the experiment
112-
updaterun(mlf, exprun, "FINISHED")
112+
updaterun(mlf, exprun; status=RunStatus.FINISHED)
113113
```
114114

115115
This will result in the folowing experiment created in your `MLFlow` which is running on `http://localhost/`:

examples/simple-with-mlflow.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ logartifact(mlf, exprun, plotfilename)
5858
rm(plotfilename)
5959

6060
# complete the experiment
61-
updaterun(mlf, exprun, "FINISHED")
61+
updaterun(mlf, exprun; status=RunStatus.FINISHED)

0 commit comments

Comments
 (0)