Working on a new version of Brainspell (an open-source platform for neuroimaging literature) to make a public JSON API that collaborators can contribute to, switch out the stack for better scalability, and provide statistical features to better conduct meta-analyses.
Summary
Long running computations especially for the forcePullFromGithub endpoints were timing out due to Heroku router limitations. Heroku prevents any single request from taking over 30 seconds if there are no updates posted to the client in that time. To get around this fact we are sending periodic messages to the client indicating the loading status of their query.
Some method calls to handle_github_request were also encountering issues due to the way API_endpoint calls were structures so we switched to a different calling convention.
Test plan
Tested on the forcePullCollections endpoint and validated that new data was transferred from github.
Summary Long running computations especially for the
forcePullFromGithub
endpoints were timing out due to Heroku router limitations. Heroku prevents any single request from taking over 30 seconds if there are no updates posted to the client in that time. To get around this fact we are sending periodic messages to the client indicating the loading status of their query.Some method calls to
handle_github_request
were also encountering issues due to the way API_endpoint calls were structures so we switched to a different calling convention.Test plan Tested on the
forcePullCollections
endpoint and validated that new data was transferred from github.