resonate-sdk-ts icon indicating copy to clipboard operation
resonate-sdk-ts copied to clipboard

Add `ctx.log` for durably logging information.

Open Tomperez98 opened this issue 3 months ago • 5 comments

Tomperez98 avatar Sep 19 '25 21:09 Tomperez98

Hey @Tomperez98 is this issue still open ? If yes can you please assign this to me to work on

wizaye avatar Sep 30 '25 21:09 wizaye

Hi! Thank you for reaching out. Will assign you, we have been prioritizing other stuff

Tomperez98 avatar Sep 30 '25 21:09 Tomperez98

Thanks @Tomperez98 will raise a pr once I'm done with the changes.

wizaye avatar Sep 30 '25 21:09 wizaye

Assigned. In case context for the issue is needed I'll give you some.

The ts sdk implements a crash-always pattern. This means that a workflow is destroy and re created every time we hit a suspension we throw the state of the coroutine.

Once we receive a resume message for the workflow we start from scratch and rely on the catching of values of durable promises.

The reason why ctx.log is preferred, needed, above console.log is that in case of the recovery we don't want to print a single log multiple times.

Tomperez98 avatar Sep 30 '25 21:09 Tomperez98

@wizaye - just checking in on this - how is it going? Need any assistance or have questions - let us know! Now that we have wrapped up some other things, we are looking at this one something to prioritize.

flossypurse avatar Oct 31 '25 14:10 flossypurse