====== Slips Task ======
"Slips of action" is a psiturk+javascript (behavior) and python+psychopy (MR pilot, unused) port of Simplified Fabulous Fruit Game, Sanne de Wit, 2019.
^ ^ link ^
| active| http://rhea.wpic.upmc.edu:22362 |
| code | https://github.com/LabNeuroCogDevel/slipstask |
| demo | https://labneurocogdevel.github.io/slipstask/ |
===== Serving =====
Slips was served on heroku's free tier (amazon turk compatible) until it was discontinued. Now the slips task is served by rhea for use within the lab (UPMC intranet).
http://rhea.wpic.upmc.edu:22362
The service is managed by systemctl but it can break with changes to python or extreme memory usage on rhea. see [[https://github.com/LabNeuroCogDevel/slipstask/blob/master/slips_psiturk.service|slips_psiturk.service]]
* On 2023-11-02, python 3.7 did not have working ''python-pip''. Switched to 3.10.12 and rerunning with ''gunicorn'' in tmux.
* In 2024-11, a memory intesnsive matlab batch job on rhea forced the kernel to kill applications, including the slips sever.
systemctl --user restart slips_psiturk.service
# now handled by foranw: systemctl --user restart slips_psiturk.service
cd /opt/ni_tools/tasks/slipstask
pyenv local 3.10.12
pyenv exec python3 -m pip install psiturk
pip install cryptography==38.0.4
gunicorn herokuapp.py --preload -b 0.0.0.0:22362
===== Data =====
in ''foranw@rhea'' [[:tools:cron]] writes ''/Volumes/L/bea_res/Data/Tasks/SlipsOfAction/task.tsv'' at 3:10am like
10 3 * * * /opt/ni_tools/tasks/slipstask/00_loef_backup.bash