nomad-xyz / nomad-monorepo

Contracts, off-chain agents, and libraries for Nomad
https://nomad.xyz
77 stars 16 forks source link

feature: kill watch tasks in sdk, prettier #133

Closed kekonen closed 2 years ago

kekonen commented 2 years ago

When the new watch tasks are registered SDK queries homes for failed state. If a network goes down (during test scenario for instance) the task will cause unhandled rejection, or the runtime will hang waiting for intervals. I believe, @ltchang2019 has a good plan to finish his work on it, but still, in order to make the sdk-failed test case pass, I proposed shutting down those intervals in the SDK.

luketchang commented 2 years ago

Thanks @kekonen, cherry picked these changes and closing PR :)