Can't run two Long running jobs parellely

recurring
Tags: #<Tag:0x00007f8b9a8532c0>

#1

We are facing following exception when running two long jobs

@odinserj any idea not sure this from hangfire

A second operation started on this context before a previous asynchronous operation completed. Use ‘await’ to ensure that any asynchronous operations have completed before calling another method on this context. Any instance members are not guaranteed to be thread safe.


#2

You don’t post enough detail, however it is clear you are sharing database contexts across threads.

Don’t do that, it is not supported, see avoiding-dbcontext-threading-issues.