Regarding behaviour inside workflow and activity

Hi all,

I have a doubt regarding the workflow.sleep(), I know when we keep this inside a workflow, let say ( for 2 hr ) then the workflow will save the state and reschedule to the next step after this time interval. what if we keep time.Sleep() in an activity, is it same behaviour or will it be like a normal blocking code on the worker?

Thanks in advance,

The activity code is the usual Go code. Its state is not recovered on retries (besides saved in the heartbeat). So time.Sleep() is a normal blocking code when called inside an activity.