Novartis / cellxgene-gateway

Cellxgene Gateway allows you to use the Cellxgene Server provided by the Chan Zuckerberg Institute (https://github.com/chanzuckerberg/cellxgene) with multiple datasets.
Apache License 2.0
56 stars 32 forks source link

Force refresh cellxgene instance for overwriting a file with same name #76

Closed Dane-Z closed 1 year ago

Dane-Z commented 2 years ago

Hello, we've run into an issue that's similar to issue #59. However, while the listing of files updates automatically, if we upload a h5ad file to a directory, launch a cellxgene instance, then realize that there's a mistake in the metadata, fix the issue and reupload/overwrite the h5ad file with the same name, we are not able to see those changes in the cellxgene instance until we restart the server.

I think this is happening because of the backend caches that file instance name and relaunches the already running instance regardless of whether or not the file has been overwritten. Is there a way that we can refresh the cache if a file has been overwritten or prevent backend caching so that we don't run into this issue?

Thank you so much for the help!!

alokito commented 1 year ago

Hi Dane! Just seeing this now. Cellxgene-gateway launches a separate instance of cellxgene for each dataset. The instance only loads the dataset once when it is launched. You can see a list of running servers by going to /cache_status, and click "terminate" to stop the running stance. terminate

alokito commented 1 year ago

Closing for now, but please reopen if I misunderstood the issue.