memiiso/pyliquibase

WARNING - VM is already running, can't set classpath/options! - version 2.0.13

bakerdrums opened this issue · 1 comments

Is is possible to call this multiple times in the same script.? I have multiple databases on the same Postgres instance I'd like to patch via on Python script call, but after the first run, I get this message.

WARNING - VM is already running, can't set classpath/options! classpath: ['/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyliquibase/liquibase-4.21.1/', '/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyliquibase/liquibase-4.21.1/lib/', '/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyliquibase/liquibase-4.21.1/internal/', '/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyliquibase/liquibase-4.21.1/internal/lib/', '/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/jnius/src']

I'm using a liquibase properties file, and I update the file after each run then run the following commands again.
liquibase = Pyliquibase(defaultsFile=propFilename, logLevel="INFO")
liquibase.execute("update")
liquibase = None

The prop file has the changeLogFile, username, password, url, of which the username, password and url change for each run.

This is all running in a Docker container. First run is spot on. Just can't get it to go more than once. I've tried everything but spawning each run in a subshell. Am I mis-using the module?

@bakerdrums im not aware of any way of ding it, this is expected behavior.

probably you will not run in to this issue if you run it from sparate python processes/scripts with two separate executions.

linking related issue kivy/pyjnius#411