cadence-java-client
cadence-java-client copied to clipboard
Calling Workflow.sleep in Cadence Activity causes activity timeout
It is not allowed to call Workflow.sleep in activity implementation. We expect activity to failed with reasonable error message rather than timing out.
I want to sleep activity processing for sometime. Should i use Thread.sleep ? or i think define retry logic and throw exception instead ?