Skip to content

Commit 0774b1a

Browse files
committed
one more thing
1 parent d9110c7 commit 0774b1a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

model_search_upload.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,12 @@ def uploat_to_mlflow(temp_dir, **context):
9494
for m in metrics:
9595
if m not in dct:
9696
continue
97-
97+
9898
print(f"Logging metric {m} {dct[m][i]}")
9999
mlflow.log_metric(key=m, value=dct[m][i])
100100

101101
#clean up
102-
if 'temp_dir' in attrs:
103-
shutil.rmtree(path=attrs["temp_dir"])
102+
shutil.rmtree(temp_dir)
104103

105104
setup_task = PythonOperator(python_callable=setup, task_id="setup_connection")
106105
a_id = setup_task.output["return_value"]

0 commit comments

Comments
 (0)