Skip to content

Commit cc000b4

Browse files
authored
Merge pull request #234 from labmlai/archive
script to move runs to the archive
2 parents 5a9c6fd + 0296463 commit cc000b4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/server/labml_app/scripts/fix_models.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,17 @@ def clear_all_logs():
100100
log_key.delete()
101101

102102

103+
def archive_all_runs():
104+
u = user.get_by_session_token('local')
105+
default_project = u.default_project
106+
runs_list = default_project.get_runs("all")
107+
108+
for r in monit.iterate('runs', runs_list):
109+
if r.parent_folder == '':
110+
default_project.add_to_folder('archive', r)
111+
112+
103113
if __name__ == '__main__':
104114
init_mongo_db()
105115

106-
fix_stdout()
116+
archive_all_runs()

0 commit comments

Comments
 (0)