Hi temporal team,
Context: we have an activity which will return a scheduled date and rest of workflow or activities shall be waiting for that date and continue.
We are exploring sleep feature.
-
Is it ok to write as “Workflow.sleep(mockSleepActivity.composeGreeting(“done”) - Workflow.currentTimeMillis());”?
-
As one post said that “So all these sleeping workflows are going to have a task scheduled to be delivered at that timestamp.” (Understand Workflow.sleep behaviors / internals - #2 by maxim). So internally it will schedule and awake at a particular timestamp in the future, is it, instead of calculating how much time it has passed?
Thank you for help!