Adding new activity just before continue-as-new

I have a long running workflow that ends with continue-as-new. I’d like to add a new activity at the very end of workflow, just before continue-as-new call. Is it replay compatible if something fails? Could it ever cause NonDeterministicException?

I never query completed workflow. Let’s exclude the query case, which I agree will be non-deterministic.

Hi,

It should be fine if you never query completed workflows.

Thank you.