0
votes

I run an app that ran for about an hour each day in a specific time, at first I thought about using a regular app service (WebJobs) that works regularly but after checking the costs I decided it was a lot and maybe there is another way to run the app.

By the way, the app is a scraper that collects data from websites.

I tried to use the azure function but unluckily the function running 10 minutes at most as a consumption plan and change to app service I actually go back to the first solution.

settings in host.json file: (Trying to change to biggest timeout there is an error)

{
  "version": "2.0",
  "functionTimeout": "00:10:00"
}

Application details:

Console application - output console

Debug\Release - size up to 20MB

Running time - about an hour, once a day.

Using Azure SQL server + DB (500 MB)

I would be very happy if someone had a more efficient and cheaper solution?

1
As far as I know, if we use consumption plan of Azure function the maximum timeout is 10 minutes. But as a suggestion, is it possible to separate your function to several part(several function with consumption plan) and trigger them one by one ?Hury Shen
Durable functions - each activity time out is 10 minutes and you can use multiple activities a s per your needAgrawal Shraddha
Please, can you share the example of how to implement this solution?ISTech
@ISTech, I think this link might be useful to you: stackoverflow.com/questions/53864209/…Hury Shen

1 Answers