Skip to content

Commit

Permalink
Change how time is fetched (#182)
Browse files Browse the repository at this point in the history
* Change how time is fetched

* Delete all jobs older than 1 day

---------

Co-authored-by: Melisa Bok <[email protected]>
  • Loading branch information
haroldrubio and melisabok authored May 6, 2024
1 parent af62957 commit 2c9ecd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions clean_jobs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
find /home/openreview/openreview-expertise/jobs/*/archives -prune -type d -mtime +2 -exec rm -r {} \;
find /home/openreview/openreview-expertise/jobs/*/mfr -prune -type d -mtime +2 -exec rm -r {} \;
find /home/openreview/openreview-expertise/jobs/*/specter -prune -type d -mtime +2 -exec rm -r {} \;
find /home/openreview/openreview-expertise/jobs/*/sub2vec.jsonl -prune -mtime +2 -exec rm -r {} \;
find /home/openreview/openreview-expertise/jobs/*/metadata.json -prune -mtime +2 -exec rm -r {} \;
find /home/openreview/openreview-expertise/jobs/*/submissions.json -prune -mtime +2 -exec rm -r {} \;
find /home/openreview/openreview-expertise/jobs/*/pub2vec.jsonl -prune -mtime +2 -exec rm -r {} \;
find /home/openreview/openreview-expertise/jobs/* -prune -type d -mmin +1440 -exec rm -r {} \;
2 changes: 1 addition & 1 deletion clean_tmp.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
find /tmp/tmp* -prune -type d -mtime +0.168 -exec rm -r {} \;
find /tmp/tmp* -prune -type d -mmin +240 -exec rm -r {} \;

0 comments on commit 2c9ecd8

Please sign in to comment.