Skip to content

Commit

Permalink
Fix lockfile creation
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Sep 3, 2021
1 parent 3e9cddb commit a1d823c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import click #type: ignore
import os
import sys
from pathlib import Path
from kg_obo.transform import run_transform

@click.command()
Expand All @@ -34,8 +35,9 @@ def run(skip, get_only, bucket, save_local, s3_test):
if os.path.isfile("lock"):
sys.exit("KG-OBO is already running. Exiting...")
else:
lockfile = open
Path("lock").touch()
run_transform(skip, get_only, bucket, save_local, s3_test)
os.remove("lock")

if __name__ == '__main__':
run()

0 comments on commit a1d823c

Please sign in to comment.