Open tegefaulkes opened 1 month ago
yeah i have no idea why the task takes so long to start executing sometimes
I suspect that there may be a task leak? If a long running node accumulates a lot of tasks then that can crowd out newer tasks. That said, I don't think we currently rate limit new tasks. So if new tasks are getting crowded out like that then I'd think we'd be getting other problems as well.
I guess this brings up the need for adding task events to the audit domain as well. So we can see how these tasks are being created and processed.
Specification
We've run into a usability problem with discovery, trusting and sharing. Currently when you trust or share it requires that you have the node in you gestalt graph. This runs to a problem where it's common to not have a node in the GG but it's unclear why. For example the flow would be
The discovery step seems superfluous from the user experience perspective. I know my friends nodeId because we're likely coordinating sharing and trusting. So why do I need to discover them first, a step that can take an unknown amount of time?
Ideally we can skip the discover step entirely. Given that discovery is an active process. Where it contacts nodes and identities to confirm them before adding them to the gestalt graph. If we don't wait long enough or even could just fail to connect and process a vertex. We can't actually proceed with sharing.
So how do we fix this? AFAIK it's working as designed beyond the fact that it's taking longer than expected. I can think of a few options.
Additional context
Tasks