Skip to content

Commit

Permalink
Use gxadmin for cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Feb 21, 2024
1 parent 326e5e4 commit f9ca8e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
9 changes: 1 addition & 8 deletions roles/galaxy-pg-cleanup/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
- name: Template run_cleanup.sh script
template:
src: run_cleanup.sh.j2
dest: /home/galaxy/run_cleanup.sh
mode: "744"
owner: galaxy
group: galaxy
- name: Add cron job for galaxy
cron:
name: "galaxy_pg_cleanup"
user: galaxy
weekday: "{{ galaxy_pg_cleanup_cron_weekday }}"
hour: "{{ galaxy_pg_cleanup_cron_hour }}"
minute: "00"
job: bash /home/galaxy/run_cleanup.sh 2>> /home/galaxy/pgcleanup.log
job: gxadmin cleanup 10
14 changes: 0 additions & 14 deletions roles/galaxy-pg-cleanup/templates/run_cleanup.sh.j2

This file was deleted.

0 comments on commit f9ca8e1

Please sign in to comment.