Skip to content

Commit

Permalink
YDA-5405: add verbose mode for revision cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stsnel committed Sep 26, 2023
1 parent e36b19e commit fe92296
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/administration/configuring-yoda.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ enable_revisions | Enable revisions: yes (1) or no (0)
async_revision_verbose_mode | Enable verbose logging revision job (true/false, default: true)
async_revision_delay_time | Delay after last modification to data object before revision job can process it (in seconds, default: 0)
enable_revision_cleanup | Enable cleanup job for removing old revisions (true/false, default: true)
revision_cleanup_verbose_mode | Print extra information in revision cleanup job for troubleshooting (true/false, default: false)
enable_async_replication | Enable asynchronous replication cronjob: yes (1) or no (0)
async_replication_verbose_mode | Enable verbose logging replication job (true/false, default: true)
async_replication_delay_time | Delay after last modification to data object before replication job can process it (in seconds, default: 0)
Expand Down
1 change: 1 addition & 0 deletions roles/yoda_rulesets/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ enable_revisions: 1 # Enable revisions: yes (1) or no (0)
async_revision_verbose_mode: false
async_revision_delay_time: 0 # Delay after last modification to data object before revision job can process it (sec)
enable_revision_cleanup: true # Enable revision cleanup job (true/false)
revision_cleanup_verbose_mode: false # Print extra information in revision cleanup job for troubleshooting (true/false)
revision_strategy: B # Revision strategy: A, B, J or Simple
yoda_instance: "{{ instance }}"
update_rulesets: true # Update already installed rulesets with git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
TIMESTAMP=`date +%s`
OFFSET={{ (ansible_date_time.tz_offset|int / 100)|int }}
TIMESTAMP=$(( $TIMESTAMP - ($OFFSET * 60 * 60)))
/etc/irods/yoda-ruleset/tools/revision-clean-up.py ${TIMESTAMP} '{{ revision_strategy }}'
/etc/irods/yoda-ruleset/tools/revision-clean-up.py ${TIMESTAMP} '{{ revision_strategy }}' {{ "-v" if revision_cleanup_verbose_mode else "" }}

0 comments on commit fe92296

Please sign in to comment.