Skip to content

Commit

Permalink
refactor: use flock -x flag instead of -e
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuldrew committed Dec 15, 2020
1 parent bedb4c7 commit 23f1af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powersimdata/data_access/scenario_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def generate_scenario_id(self):
:return: (*str*) -- new scenario id.
"""
print("--> Generating scenario id")
command = "(flock -e 200; \
command = "(flock -x 200; \
id=$(awk -F',' 'END{print $1+1}' %s); \
echo $id, >> %s; \
echo $id) 200>%s" % (
Expand Down

0 comments on commit 23f1af3

Please sign in to comment.