Closed kanupriya15025 closed 1 year ago
The same works fine on the below functions runtime version :
Azure Functions Core Tools
Core Tools Version: 3.0.4899 Commit hash: N/A (64-bit)
Function Runtime Version: 3.17.0.0
thanks @kanupriya15025 for reporting this. We'll look into it
@kaibocai @lilyjma I tried this fix with updating my pom.xml with updating the following
But this doesn't fix the issue. I still see my orchestrator failing with error : java.lang.RuntimeException: Unexpected failure in the task execution
The same code works fine with updating the Runtime Version back to ~3.
Can we look at this?
@kanupriya15025 , I cannot reproduce your issue on my side with version 1.1.1
My function is the same as yours:
My local results work fine:
As you can see host version is 4.21.1 and SDK version is 1.1.1.
I think you may not have the right setup on your local. As I said in the last meeting, azure function runtime v3 doesn't even support durable function java. It's only supported on v4 runtime.
I am getting below errors with the basic orchestration sample when running on v3
So I was wondering how you were able to run durable function java on v3 function runtime. Please reach out to @lilyjma if you need me to jump on a call to check and help. Thanks.
@kaibocai My bad..I wasn't testing it right. It works fine now. However, this breaks the suspend orchestration functionality now. I'll raise a separate bug for that.
I was trying out the below example on my local machine with the following conf: Core Tools Version: 4.0.5198 Commit hash: N/A (64-bit) Function Runtime Version: 4.21.1.20667
https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-eternal-orchestrations?tabs=java#periodic-work-example
This is the tweaked version of the function I ran :
I doesn't work anymore with the upgrade to Function Runtime Version 4.21. This is the error I get before the second time timer starts in the loop :