Skip to content

Commit fdaef5c

Browse files
committed
bugfix: this feature flag isnt used by airflow, prefer checking a hail env var
1 parent b2deaa0 commit fdaef5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

v03_pipeline/lib/model/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from v03_pipeline.lib.model.feature_flag import FeatureFlag
1+
import os
22

33
LOCAL_DISK_MOUNT_PATH = '/var/seqr'
44
PROJECTS_EXCLUDED_FROM_LOOKUP = {
@@ -15,11 +15,11 @@
1515
}
1616
GRCH37_TO_GRCH38_LIFTOVER_REF_PATH = (
1717
'gs://hail-common/references/grch37_to_grch38.over.chain.gz'
18-
if FeatureFlag.RUN_PIPELINE_ON_DATAPROC
18+
if os.environ.get('HAIL_DATAPROC') == '1'
1919
else 'v03_pipeline/var/liftover/grch37_to_grch38.over.chain.gz'
2020
)
2121
GRCH38_TO_GRCH37_LIFTOVER_REF_PATH = (
2222
'gs://hail-common/references/grch38_to_grch37.over.chain.gz'
23-
if FeatureFlag.RUN_PIPELINE_ON_DATAPROC
23+
if os.environ.get('HAIL_DATAPROC') == '1'
2424
else 'v03_pipeline/var/liftover/grch38_to_grch37.over.chain.gz'
2525
)

0 commit comments

Comments
 (0)