Jul 16 2020 12:07 AM - edited Jul 16 2020 12:07 AM
Hello Team,
We have couple of App Service which takes more than 230 Sec. We can not use Durable function or Webjobs. how can we increase the time, as we have a task running which takes about 10 mins.
Thanks,
Biplab
Jul 16 2020 02:47 AM
Hello @Biplab Sah
Do you have several App Services or Web Apps? Can you please try to explain why you cannot use Webjobs or durable functions? It may help to understand your use case. On top of that I suggest you cross-post your question in the Apps on Azure community here: https://techcommunity.microsoft.com/t5/apps-on-azure/bd-p/AppsonAzure
Cheers
Rolf
#MCT #LearnWithRolf #TheCloud42
Jul 16 2020 09:11 AM
@Rolf-42 Thanks.
So, The application runs both on Azure as well as on-premise. using a webjob or durable function will put a dependency on cloud.
I have couple of App Services. App Service 1 calls App Service 2, and if App Service 2 takes more than 230 seconds to respond, the request throws 500. I tried Async Await and
Jul 16 2020 12:39 PM
Hello @Biplab Sah
As you can see from this link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes an error 500 is an internal server error. So you need to do some debugging in the call between service 1 and service 2 like which authentication, which permission, which URL/URI etc.
And yes, going towards async is a good cloud development principle. Maybe you can also consider putting your apps into containers to reduce dependencies to cloud services.
Some source code would help to get into the details but again that is probably better asked in the developer community than in the Microsoft Learn community.
Good luck
Cheers
Rolf
#MCT #LearnWithRolf #TheCloud42
Jul 16 2020 07:55 PM