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

Add disk usage to release.py script #20

Open
pwalczysko opened this issue Sep 9, 2020 · 1 comment
Open

Add disk usage to release.py script #20

pwalczysko opened this issue Sep 9, 2020 · 1 comment

Comments

@pwalczysko
Copy link
Contributor

See suggestion on https://github.com/IDR/SubmissionWorkflow/pull/25#discussion_r485778995

Explore the feasibility of adding the lines

    export PGPASSWORD=$(/opt/omero/server/OMERO.server/bin/omero config get omero.db.pass)
    export PGHOST=$(/opt/omero/server/OMERO.server/bin/omero config get omero.db.host)
    psql -U omero idr -c "select pg_database_size('idr')"

into https://github.com/IDR/idr-utils/blob/master/scripts/releases.py

cc @manics

@sbesson
Copy link
Member

sbesson commented Sep 9, 2020

Generally makes sense to compute as much as possible. Main caveat is that the script would need to be run from the deployment while it can be executed locally currently but we can live with this trade-off

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

No branches or pull requests

2 participants