Skip to content

Commit

Permalink
Skip DB connection check for prepare mode (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning authored Dec 13, 2024
1 parent f952086 commit 59b2263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cumulus_library/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from cumulus_library.study_manifest import StudyManifest

__all__ = ["BaseTableBuilder", "CountsBuilder", "StudyConfig", "StudyManifest"]
__version__ = "4.1.1"
__version__ = "4.1.2"
6 changes: 3 additions & 3 deletions cumulus_library/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ def run_cli(args: dict):
)
try:
runner = StudyRunner(config, data_path=args.get("data_path"))
console.print("[italic] Connecting to database...")
runner.config.db.cursor().execute("SHOW DATABASES")
if not args.get("prepare"):
console.print("[italic] Connecting to database...")
runner.config.db.cursor().execute("SHOW DATABASES")
study_dict = get_study_dict(args.get("study_dir"))
if "prefix" not in args.keys():
if args.get("target"):
Expand Down Expand Up @@ -481,7 +482,6 @@ def main(cli_args=None):

if args.get("data_path"):
args["data_path"] = get_abs_path(args["data_path"])

return run_cli(args)


Expand Down

0 comments on commit 59b2263

Please sign in to comment.