Skip to content
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

Update state stats query #157

Merged
merged 8 commits into from
May 22, 2024

Conversation

pauldg
Copy link
Contributor

@pauldg pauldg commented May 21, 2024

Added a --older-than interval parameter for gxadmin query job-state-stats. Would like to have fine-grained numbers for different intervals: months, days, minutes, seconds, ...

Comment on lines 847 to 853
if (( $# > 0 )); then
for args in "$@"; do
if [[ "${args:0:13}" = '--older-than=' ]]; then
interval="${args:13}"
fi
done
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please see other ##? functions, you don't need to check the argument count, please check the value of $arg_older_than instead. it will either have a number or be an empty string.

parts/22-query.sh Show resolved Hide resolved
parts/22-query.sh Outdated Show resolved Hide resolved
Copy link
Member

@hexylena hexylena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a nice improvement, great to have another iquery supporting query!

thank you for the hard work @pauldg

@hexylena hexylena merged commit 74f0be7 into galaxyproject:main May 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants