Skip to content

Commit

Permalink
Apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sofstam committed Dec 11, 2023
1 parent ff195f8 commit 044d3ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cg/cli/workflow/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from cg.meta.workflow.nf_analysis import NfAnalysisAPI
from cg.models.cg_config import CGConfig
from cg.store import Store
from cg.constants.constants import MetaApis

OPTION_DRY = click.option(
"-d", "--dry-run", help="Simulate process without executing", is_flag=True
Expand Down Expand Up @@ -100,7 +101,7 @@ def metrics_deliver(context: CGConfig, case_id: str, dry_run: bool) -> None:
If QC metrics are met it sets the status in Trailblazer to complete.
If failed, it sets it as failed and adds a comment with information of the failed metrics."""

analysis_api: RnafusionAnalysisAPI | TaxprofilerAnalysisAPI = context.meta_apis["analysis_api"]
analysis_api: NfAnalysisAPI = context.meta_apis[MetaApis.ANALYSIS_API]

try:
analysis_api.status_db.verify_case_exists(case_internal_id=case_id)
Expand Down

0 comments on commit 044d3ba

Please sign in to comment.