HangfireIO / HangfireIO/Hangfire
DisableConcurrentExecutionAttribute not work
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
I have async Task method (not static) in my console app (postgres db) that runs every minute.
Despite the fact that I use the DisableConcurrentExecutionAttribute with a timeout of 60, I see several running copies of the task that have been working for more than a minute. In the logs, I see that they really work and conflict with each other because parallel processing is not supported in my logic.

.net 4.7.2
Contributor guide
Research direction
Reproduce the reported scheduled async Task behavior in the console app setup, using PostgreSQL and .NET 4.7.2 with DisableConcurrentExecutionAttribute and a 60-second timeout. Observe the logs while the task runs longer than a minute; done means determining why overlapping copies occur and confirming that the concurrency behavior matches the intended constraint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, postgresql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100