HangfireIO / HangfireIO/Hangfire

DisableConcurrentExecutionAttribute not work

Open
#1,635 3 comments 1 reaction 0 assignees View on GitHub
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.
![image](https://user-images.githubusercontent.com/9824966/77769061-64dd2600-7054-11ea-8eae-8d0ca02db639.png)
.net 4.7.2

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.