Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New network results redirects to landing page #39

Open
chrtannus opened this issue Mar 10, 2025 · 1 comment
Open

New network results redirects to landing page #39

chrtannus opened this issue Mar 10, 2025 · 1 comment
Assignees

Comments

@chrtannus
Copy link
Member

Sometimes going to the results page after submitting a gene list does not work -- it goes back to the landing page.

@chrtannus chrtannus self-assigned this Mar 10, 2025
chrtannus added a commit that referenced this issue Mar 10, 2025
…tate (just reset the state/network).

If it can't fetch the results, it now displays a message dialog and only redirects to the landing page after the user clicks OK.
-- #39
chrtannus added a commit that referenced this issue Mar 11, 2025
@chrtannus
Copy link
Member Author

I found out why this is happening, and only on the deployed instance (https://iregulon-dev.baderlab.net/):

We deploy the web app with replicas: 2 in Docker Compose (docker-compose.yml), so it is running two independent instances of the application. Each instance has its own isolated memory space.
When the user submits a job, the request parameters are temporarily saved in a Map object on the server side. Then the saved parameters need to be retrieved in a separate client fetch when the job is finished.
The Map we're using to store the parameters exists separately in each container. If a user's initial job request is handled by one container, and their result request is handled by the other, the second container will not have the job parameters in its Map.

In order to solve this issue, we should store the job parameters in the DB (or use Redis).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant