Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution Worker is in the Failed state now due to an exception, execution will be retried no more than in 00:00:04 #89

Closed
sampsonye opened this issue Sep 10, 2019 · 1 comment · May be fixed by #99

Comments

@sampsonye
Copy link

System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
at System.Collections.Generic.HashSet`1.Contains(System.Collections.Generic.T item)
at Hangfire.Redis.RedisLock.Acquire(StackExchange.Redis.IDatabase redis, StackExchange.Redis.RedisKey key, System.TimeSpan timeOut, System.TimeSpan holdDuration)
at Hangfire.Redis.RedisLock.Acquire(StackExchange.Redis.IDatabase redis, StackExchange.Redis.RedisKey key, System.TimeSpan timeOut)
at Hangfire.Redis.RedisConnection.AcquireDistributedLock(System.String resource, System.TimeSpan timeout)
at Hangfire.Storage.StorageConnectionExtensions.AcquireDistributedJobLock(Hangfire.Storage.IStorageConnection connection, System.String jobId, System.TimeSpan timeout) at offset 28
at Hangfire.States.BackgroundJobStateChanger.ChangeState(Hangfire.States.StateChangeContext context)
at Hangfire.Server.Worker.TryChangeState(Hangfire.Server.BackgroundProcessContext context, Hangfire.Storage.IStorageConnection connection, Hangfire.Storage.IFetchedJob fetchedJob, Hangfire.States.IState state, System.String[] expectedStates, System.Threading.CancellationToken initializeToken, System.Threading.CancellationToken abortToken) at offset 258
at Hangfire.Server.Worker.Execute(Hangfire.Server.BackgroundProcessContext context)
at Hangfire.Server.BackgroundProcessDispatcherBuilder.ExecuteProcess(System.Guid executionId, System.Object state) at offset 123
at Hangfire.Processing.BackgroundExecution.Run(System.Action`2 callback, System.Object state) at offset 69
@marcoCasamento
Copy link
Owner

Hi, I'm planning to look at this (and others), how to repro ? hangfire ver ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants