elsa-workflows / elsa-workflows/elsa-core

Hangfire - Queued instance jobs are replicating on app startup

Open
#3,110 5 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

StartAt Activities (possibly other bookmarks) are re-queued on application startup, A workflow that has started and suspended for 30 days for example if the application restarts every day it will have 29~31 duplicated jobs in the queue.

Just hunting down why and whether it is a YesSQL part query problem

Here is one duplicated earlier, but does so on every app restart.
![image](https://user-images.githubusercontent.com/1550939/172394635-68f149d9-8533-4996-a454-7911d57552ec.png)
![image](https://user-images.githubusercontent.com/1550939/172399238-704b5f29-05cf-4619-bd04-a558bb0f75c9.png)

This is causing some unnecessary startup time adding to the queue as well as causing Hangfire to suffer a bit more in querying itself

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.