Need help with A non-deterministic error has caused the Workflow Task to hang

The code looks deterministic. Are you sure that a code change does not cause the error?

BTW you can poll more efficiently without looping inside the workflow. What is the best practice for a polling activity? - #2 by maxim