StochSS / stochss-compute

A compute delegation server for the StochSS family of stochastic simulators.
https://stochss.github.io/stochss-compute/
GNU General Public License v3.0
5 stars 0 forks source link

Mdip/fix/docker startup #109

Closed mdip226 closed 2 years ago

mdip226 commented 2 years ago
mdip226 commented 2 years ago

There could (should, but now, or later?) be a command line flag that specifies whether the user is using their own dask setup in a terminal or whether they want to use the dask python instantiation scheme. Which should take precedence is what I'm wondering

mdip226 commented 2 years ago

There could (should, but now, or later?) be a command line flag that specifies whether the user is using their own dask setup in a terminal or whether they want to use the dask python instantiation scheme. Which should take precedence is what I'm wondering

It's a kind of tricky question, but the way I'm thinking at the moment is that app.py can be the bare-bones method which will just connect to whatever address you give it for the cluster, defaulting to localhost:8786, and startup.py can be the 'just work` method for people who just want to compute without having to set up a cluster. It's tricky because there really are two different ways to do this, and the dask python API's main use case seems to be for writing these kinds of startup scripts, at least in part.

mdip226 commented 2 years ago

I realize now some of the changes I proposed initially turned out to be unnecessary! Can leave alot of things like they were initially. I had made some mistaken assumptions in what was going on and where in the startup script.