SANDAG / RSM

Rapid Strategic Model for the San Diego Association of Governments
1 stars 3 forks source link

Emmebank matrix aggregator crashes if other run accessing donor model emmebank #26

Closed JoeJimFlood closed 1 year ago

JoeJimFlood commented 1 year ago

One attempt at the 2000-zone baseline run crashed early because it couldn't open the donor model's Emmebank due to an emmelocki file existing. I looked and didn't see it, so I just restarted the run, which completed successfully. I hypothesized that the error was due to two runs I had started at the same time trying to access the donor model's Emmebank at the same time. Looking at the logbooks confirmed this. According to the run's logbook, it attempted to access the donor model's Emmebank at 11:44 AM on March 4: image

However, another run I had going at the same time was accessing the same Emmebank between 11:40 and 11:47 AM on the same day: image

This could be a problem if we need to run several runs at the same time and starting them 15 minutes apart might not be feasible. I suppose having a loop that tries accessing it, and then puts a time.sleep() call within an except statement might be a possible workaround.

AshishKuls commented 1 year ago

added the connection attempt in a loop.