radiasoft / sirepo

Sirepo is a framework for scientific cloud computing. Try it out!
https://sirepo.com
Apache License 2.0
64 stars 31 forks source link

elegant/madx/opal prepare_for_client should be statelessCompute #6523

Open robnagler opened 11 months ago

robnagler commented 11 months ago

elegant/madx/opal prepare_for_client updates rpnCache for the client. This data gets saved to disk the next time the simulation is modified. However, rpnCache is always one version out of data. It seems like prepare_for_save should be used to update the rpnCache so the only time the cache is updated is when the data is modified.

@moellep what do you think?

robnagler commented 11 months ago

rpnCache should be a statelessCompute that accepts sdata and returns the rpnCache. This could be called when the models are loaded.