com.azure.core.management.exception.ManagementException: Long running operation is Failed or Cancelled. Error
This is happening quite frequently now.
When I am creating Elastic job agent I get
com.azure.core.management.exception.ManagementException: Long running operation is Failed or Cancelled.
Now this error is happening with every api call. I am using azure java sdk.
I was also getting this error when I was trying to create elastic job agent in parallel.
com.azure.core.management.exception.ManagementException: Status code 500, "{"error":{"code":"InternalServerError","message":"An unexpected error occured while processing the request. Tracking ID: '2768697d-5030-4273-a18e-0d04c16fcaf1'"}}"
I implemented a retry mechanism to test if this is because of cool down period and I got 100% success after 15 attempts and exponential backoff. Although this is not a much reliable solution.
Can someone help me finding a solution that can resolve this issue or a solution to make sure that the elastic job agent gets created successfully.
I am using
@ServiceMethod(
returns = ReturnType.SINGLE
)
JobAgentInner createOrUpdate(String var1, String var2, String var3, JobAgentInner var4);
Method to create the agent.