-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conversation
parts/22-query.sh
Outdated
if (( $# > 0 )); then | ||
for args in "$@"; do | ||
if [[ "${args:0:13}" = '--older-than=' ]]; then | ||
interval="${args:13}" | ||
fi | ||
done | ||
fi |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
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, ...