Skip to content

Commit cb4decf

Browse files
authored
Merge pull request #24 from EoghanOConnor/activate_deleted_experiment
Fix: Deleted experiments activate
2 parents 9487707 + 5f6a974 commit cb4decf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.claude/settings.example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"type": "command",
38-
"command": "if [ \"$MLFLOW_CLAUDE_TRACING_ENABLED\" = \"true\" ]; then mlflow autolog claude -u http://127.0.0.1:$MLFLOW_PORT -n $MLFLOW_EXPERIMENT_NAME; fi"
38+
"command": "if [ \"$MLFLOW_CLAUDE_TRACING_ENABLED\" = \"true\" ]; then python3 -c \"import mlflow; client=mlflow.tracking.MlflowClient(tracking_uri='http://127.0.0.1:$MLFLOW_PORT'); exp=client.get_experiment_by_name('$MLFLOW_EXPERIMENT_NAME'); client.restore_experiment(exp.experiment_id) if exp and exp.lifecycle_stage == 'deleted' else None\" && mlflow autolog claude -u http://127.0.0.1:$MLFLOW_PORT -n $MLFLOW_EXPERIMENT_NAME; fi"
3939
}
4040
]
4141
}

docs/mlflow-tracing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ Use `.claude/settings.example.json` and copy the MLflow-related keys/hook blocks
2525
Required pieces:
2626
- `MLFLOW_CLAUDE_TRACING_ENABLED`, `MLFLOW_PORT`, `MLFLOW_EXPERIMENT_NAME`
2727
- `SessionStart` and `Stop` hooks
28-
29-
## 4) Enable autologging and verify
28+
Note: Set MLFLOW_CLAUDE_TRACING_ENABLED to false to disable tracking
29+
## 4) Start claude
3030

3131
```bash
32-
mlflow autolog claude -u "http://127.0.0.1:$MLFLOW_PORT" -n "$MLFLOW_EXPERIMENT_NAME"
32+
claude
3333
```
3434

3535
Then run Claude and execute an RCA prompt. If configured correctly, traces appear in your MLflow UI.

skills/root-cause-analysis/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ If any checks have `"status": "missing"` and `"configurable": true`, offer to he
8181
},
8282
{
8383
"type": "command",
84-
"command": "if [ \"$MLFLOW_CLAUDE_TRACING_ENABLED\" = \"true\" ]; then mlflow autolog claude -u http://127.0.0.1:$MLFLOW_PORT -n $MLFLOW_EXPERIMENT_NAME; fi"
84+
"command": "if [ \"$MLFLOW_CLAUDE_TRACING_ENABLED\" = \"true\" ]; then python3 -c \"import mlflow; client=mlflow.tracking.MlflowClient(tracking_uri='http://127.0.0.1:$MLFLOW_PORT'); exp=client.get_experiment_by_name('$MLFLOW_EXPERIMENT_NAME'); client.restore_experiment(exp.experiment_id) if exp and exp.lifecycle_stage == 'deleted' else None\" && mlflow autolog claude -u http://127.0.0.1:$MLFLOW_PORT -n $MLFLOW_EXPERIMENT_NAME; fi"
8585
}
8686
]
8787
}

0 commit comments

Comments
 (0)