ContextLab / brainfit-task

a package for acquiring fitness tracker (Fitbit) and cognitive task (JsPsych) data on the Amazon Mechanical Turk platform
2 stars 0 forks source link

Rare phantom Docker or MySQL crashing #25

Open gmnotaro opened 6 years ago

gmnotaro commented 6 years ago

Rarely, when the links have been posted for a long time, the Docker software has crashed. There have also been a few cases of the MySQL server not responding after a long time of posted links (typically when there is only a couple links remaining for a given hit, e.g. 2 of 20). I am not sure what causes this, but someone more savvy than I can probably figure this out.

For the Docker issue, one potential solution could be to run a bash script in the background that occasionally pings the Docker software, and if a 'bad response' is observed, then restart the software from the command line. For the MySQL issue, something similar could be performed to run docker start fitbrain_mysql_1 if it is no longer functional.