Skip to content

Commit

Permalink
Merge pull request #234 from labmlai/archive
Browse files Browse the repository at this point in the history
script to move runs to the archive
  • Loading branch information
lakshith-403 authored May 15, 2024
2 parents 5a9c6fd + 0296463 commit cc000b4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/server/labml_app/scripts/fix_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,17 @@ def clear_all_logs():
log_key.delete()


def archive_all_runs():
u = user.get_by_session_token('local')
default_project = u.default_project
runs_list = default_project.get_runs("all")

for r in monit.iterate('runs', runs_list):
if r.parent_folder == '':
default_project.add_to_folder('archive', r)


if __name__ == '__main__':
init_mongo_db()

fix_stdout()
archive_all_runs()

0 comments on commit cc000b4

Please sign in to comment.