ipvm-wg/homestar

Compute: Move DHT retrieval of receipts to the background

zeeshanlakhani opened this issue · 0 comments

Summary

Currently, when a worker runs, we resolve promises linked to an instruction (which points to a receipt) by first looking in the local database and then, if that returns nothing, asking the "network"/DHT, i.e. libp2p, for the data within a deadline/timeout. If the receipt is not gathered, we then fully execute the task/wasm on the homestar node.

Instead of waiting for the libp2p get/check, we should default to executing inlined instructions/tasks simultaneously while also trying to resolve those promises within an entire workflow for later executions. Again, this only works for inlined instructions/tasks, not those that point to another workflow running elsewhere.

ETA: 2023-11-10