R
R
run1822019-06-03 11:30:50
C++ / C#
run182, 2019-06-03 11:30:50

How to run a task on Azure c# that runs more than 5 minutes?

There is a Web API in C#, in which you need to make a request to the database to execute a procedure with a response returned. But the procedure runs for more than 5 minutes and the waiting time ends. How can this limitation be bypassed?
Found an option with WebJobs, how to implement it correctly? How to write, add to the project and run through the code?
I'm just starting to understand C # and I'm working with Azure for the first time, the client does not give access to the server, I work through git, Visual Studio and Microsoft SQL Server Management Studio.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2019-06-03
@petermzg

Maybe you should change the logic and make an asynchronous request?
1. A request is made. On the server, the operation is queued and the operation ID is returned.
2. a. The user requests the status of the operation at some interval.
or b. There is a WebSocket connection on which a notification about the end of the request is returned.
3. The result of the operation is requested.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question