From e31c5cf7c5d3f3bb13683a43b50cfc0a2435823c Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Fri, 12 Apr 2024 17:42:13 -0400 Subject: [PATCH] Update 22-query.sh Use days as interval in `query archivable-histories` rather than minutes. --- parts/22-query.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/22-query.sh b/parts/22-query.sh index ed81a9e6..d4876751 100644 --- a/parts/22-query.sh +++ b/parts/22-query.sh @@ -5256,8 +5256,8 @@ query_archivable-histories() { ##? [--user-last-active=360] [--history-last-acti AND NOT history.purged AND NOT history_dataset_association.deleted AND NOT history_dataset_association.purged - AND history.update_time < now() - interval '$arg_history_last_active minutes' - AND galaxy_user.update_time < now() - interval '$arg_user_last_active minutes' + AND history.update_time < now() - interval '$arg_history_last_active days' + AND galaxy_user.update_time < now() - interval '$arg_user_last_active days' $extra_conds GROUP BY history.id, galaxy_user.id