We left Russia. We are against aggression and war with Ukraine. It is a tragedy for our nations, it is a nightmare

Serverless Azure SQL - How to allow auto-pause of SQL database used by Hangfire

I’m using Azure SQL serverless mode to allow my database to auto-pause when not used. This means that I’m paying for the Azure SQL instance only when the db is used, which is very useful for some test environments which aren’t used all the time.

I do have some background jobs which auto stop and restart depending on inactivity of the application (e.g. if the application stops receiving REST requests I consider that the background jobs should stop).

I wonder if Hangfire will have any database interaction while there are no background jobs queued or scheduled in it.

Hi!
I’m in the same situation…
Did you test its behaveur ?