[SQL Server] Check if a job has already been started or scheduled

I’m currently working on a big .NET Core application that is using SQL Server jobs to perform some background tasks. Today, I encountered an issue when I tried to start the job two times: SQLServerAgent Error: Request to run job XXX (from User YYYY) refused because the job already has a pending request from User… Continue reading