marxanweb / general

Issues tracker, installers, registry, test data and example developer apps for Marxan Web
European Union Public License 1.2
2 stars 2 forks source link

Error: 'The project is already running' when it has actually completed #288

Closed andrewcottam closed 3 years ago

andrewcottam commented 3 years ago

In the training session, at the end of the day all of the following runs still say Running and the users experienced the 'The project is already running' message:

Untitled

However, looking at the logs each project was run (runMarxan?) and the results were received in 3 seconds (getResults?) (log times are one hour ahead). The following is the example for the jillashley2 micrnesia project:

Screenshot 2020-10-28 at 19 59 26

So for some reason the runlog is not being updated.

andrewcottam commented 3 years ago

There are no defunct (zombie) processes on the server looking at the logs from the following:

ps -A

That Francesco ran at 08:09PM.

andrewcottam commented 3 years ago

This is a concurrency issue. Given the following run log:

pid User Project Started Ended Runtime Runs Status
3426 admin project1 29/10/2020 08:46:00 0/10 Running
3429 admin project2 29/10/2020 08:46:03 0/10 Running

If project1 finishes and project2 immediately after, both will load the runlog with both projects running. Then when project1 finishes it will write that it has finished to the log but project2 will overwrite this when it finishes (as it has a dataframe with project1 still running in it).

andrewcottam commented 3 years ago

This looks like it is still happening after the training day on 09/03/2021. Runs complete and results are returned, but the rul log is not updated.