One hangfire database, one recurring job, multiple servers

recurring
Tags: #<Tag:0x00007f6e3f4c3920>

#1

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.


#2

Hi, I think your question has been answered here: