Skip to content

adds tmpreaper task to cleanup old conda envs #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pulsar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,12 @@
job: "/usr/sbin/tmpreaper --verbose=0 --showdeleted --all --mtime --mtime-dir --runtime=600 {{ pulsar_cleanup_delay }} {{ pulsar_staging_dir }} >> {{ pulsar_cleanup_dir }}/cleaning_pulsar_files.log"
become: yes
become_user: "{{ pulsar.user_name }}"
- name: Creates entry in crontab "tmpreaper call on old conda environments"
ansible.builtin.cron:
name: "tmpreaper on old conda envs"
minute: "7"
hour: "*/12"
job: "/usr/sbin/tmpreaper --verbose=0 --showdeleted --all --ctime --mtime-dir --runtime=600 {{ pulsar_cleanup_delay }} {{ miniconda_prefix }}/envs >> {{ pulsar_cleanup_dir }}/cleaning_conda_envs.log"
become: yes
become_user: "{{ pulsar.user_name }}"
when: install_nfs_conda