Skip to content

Commit

Permalink
Update base_scenario.py to handle race condition (#89)
Browse files Browse the repository at this point in the history
* Update base_scenario.py

self.name for base_scenario leads to race conditions by only using seconds in the naming scheme

* ensured travis runs with python 3.6

* syntax fix
  • Loading branch information
eugenevinitsky committed Sep 5, 2018
1 parent 2d5edd3 commit c0683bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/scenarios/base_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self,
Serializable.quick_init(self, locals())

self.orig_name = name # To avoid repeated concatenation upon reset
self.name = name + time.strftime("_%Y%m%d-%H%M%S")
self.name = name + time.strftime("_%Y%m%d-%H%M%S") + str(time.time())

self.generator_class = generator_class
self.vehicles = vehicles
Expand Down

0 comments on commit c0683bb

Please sign in to comment.