I need to create a Job on sql server that runs every 5 minutes. The job must execute a stored procedure that verifies some records in the database, which, depending on its status, must perform the execution of other stored procedures. The problem is that I have noticed that some processes take a little more time and I would like to know, if possible, to indicate to the job in some way, after its execution, that it does not continue running until it has finished performing all the tasks it has subscribed.
That is, something like: