-
Notifications
You must be signed in to change notification settings - Fork 46
Forest Setup
Eli Jones edited this page Mar 19, 2024
·
2 revisions
- Update the servers to the most recent version of the code.
- Update the webservers by pulling the current version of the code to your local machine, and from your local machine, run
eb deploy
. - Update the worker server by SSHing into it and running
up
.
- Update the webservers by pulling the current version of the code to your local machine, and from your local machine, run
- When SSHed into the worker server,
cd
into the~/beiwe-backend
directory and runpip install -r requirements_data_processing.txt
. This will install Forest through Pip. - Copy the file
/beiwe-backend/cluster_management/pushed_files/install_celery_worker.sh
into the server's ~/ directory (this file already exists in the server's ~/ directory, but you need to update it. Then run that file ($ ~/install_celery_worker.sh
) - Run
sudo processing-restart
- Forest must be enabled on a study-by-study basis. Go to the
/edit_study/<study_id>
page for your study (you must be a study admin or site admin to do this) and click "Enable Forest" - To run Forest, go to "Forest" -> "Create Forest Tasks" in the top navbar. From that page, you can queue up new Forest tasks. Once they're queued, they'll be picked up the next time a cronjob pushes them to Celery, which should happen every five minutes if Celery is running correctly. If you have problems with that, see Troubleshooting Celery.
- Forest data is designed to be exported to Tableau via a Tableau Web Data Connector (WDC) API endpoint on the Beiwe deployment.
- The address of this endpoint is
[beiwe_deployment_url]/api/v0/studies/<study_object_id>/summary-statistics/daily/wdc
. - You can authenticate this endpoint by going to
/manage_credentials
and creating an API key.
- The address of this endpoint is
- We are in the process of (March 2024) adding additional APIs to access all data generated by Beiwe. If it is past roughly April 2024 and this page has not been updated you may file a bug report.