fix: CLI keeps activate_experiment for old master servers
@@ -216,7 +216,7 @@ def create_experiment(
additional_body_fields: Optional[Dict[str, Any]] = None,
) -> int:
body = {
- "activate": activate,
+ "activate": False,
"experiment_config": yaml.safe_dump(config),
"model_definition": [e.dict() for e in model_context.entries],
"validate_only": validate_only,
@@ -238,6 +238,9 @@ def create_experiment(
new_resource = r.headers["Location"]
experiment_id = int(new_resource.split("/")[-1])
+ if activate:
+ activate_experiment(master_url, experiment_id)
+
return experiment_id
