Per the Hangfire 0.8.2 announcement post, Hangfire has a DisableConcurrentExecution
filter which, when applied to a method, prevents multiple instances of the method from executing concurrently.
The DisableConcurrentExecution
filter takes a timeoutInSeconds
int parameter. From the example in the linked article:
[DisableConcurrentExecution(timeoutInSeconds: 10 * 60)]
public void SomeMethod()
{
// Operations performed inside a distributed lock
}
My question is: What happens when, given a job which is waiting on obtaining the lock for a DisableConcurrentExecution
-filtered method, the time that the job has been waiting exceeds the timeoutInSeconds
value?