One hangfire database, one recurring job, multiple servers

We have next scenario:

  • hangfire uses only one database (all server use this hangfire database server)
  • we have one recurring job - let’s call it job1 which executes every day at 8:00
  • we have multiple server (actually for now 2)

When job is to be executed at 8:00 does hangfire chooses one of the available servers and executes the job? Is race condition prevented? I’m just wondering if recurring job can’t be executed twice concurrently on two different servers, because the can both be scheduled at 8:00. Is this behaviour mentioned somewhere in official documentation.

1 Like

Hi, I think your question has been answered here: