Skip to content

Commit

Permalink
feat: ensure the pipeline runs with the correct data store
Browse files Browse the repository at this point in the history
  • Loading branch information
rouille committed Jan 31, 2024
1 parent ff09d38 commit 5117cd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/oge/data_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def print_args(args: argparse.Namespace, logger):

def main(args):
"""Runs the OGE data pipeline."""
if os.getenv("OGE_DATA_STORE") in ["s3", "2"]:
raise OSError(
"Invalid OGE_DATA_STORE environment variable. Should be 'local' or '1'"
)

args = get_args()
year = args.year

Expand Down

0 comments on commit 5117cd7

Please sign in to comment.