Skip to content

Design question: how to handle long computations in a node? #452

@florian-ts3d

Description

@florian-ts3d

Hello, I'm trying to see what efforts would be needed to port to V3 and look at the changes I've done in the core logic so far: I was wondering what would be the best strategy to handle long computations? Right now the UI hangs if anything takes a long time to compute in a node.

Example: just add a Sleep of 10 seconds in one of the compute() function in the calculator example to see what I'm experiencing.

In my previous implementation I created WorkerNodeDataModels and workers but I'm not sure it's the best strategy (what happens when you have multiple inputs, what do you do with current long computation, etc etc...) and was wondering if this is something you thought about?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions