superduper icon indicating copy to clipboard operation
superduper copied to clipboard

[REMOTE-UTIL] Utility for remote / cached loading of model/ component instances

Open blythed opened this issue 5 months ago • 0 comments

When users are interacting with the system, they should not need to care too much about where the model is running. superduper will provide the best place to run the model.


class ModelProxy(Model):
    ...

class Datalayer:
    def load(type_id, identifier) -> ModelProxy | Component:
        context = get_context()
        if context is not None:
            remote = context.get_remote()

        if remote:
            return remote.load(type_id, identifier)
        ...
  • [ ] #2444
  • [ ] #2445

blythed avatar Sep 09 '24 08:09 blythed