Skip to content

Commit

Permalink
Fix the "Awaiting Jobs" metric in Dashboard UI
Browse files Browse the repository at this point in the history
It wasn't obtained correctly when Version_180 compatibility level is used. Now it's taken directly from the state index.
  • Loading branch information
odinserj committed May 24, 2023
1 parent 935aaad commit eb009ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hangfire.InMemory/InMemoryMonitoringApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ public override StatisticsDto GetStatistics()
Retries = state.Sets.TryGetValue("retries", out var retries)
? retries.Count
: 0,
Awaiting = state.Sets.TryGetValue("awaiting", out var awaiting)
? awaiting.Count
Awaiting = state._jobStateIndex.TryGetValue(AwaitingState.StateName, out var indexEntry)
? indexEntry.Count
: 0,
});
}
Expand Down

0 comments on commit eb009ae

Please sign in to comment.