Add JobCount method to MonitoringApi to get count of jobs in any state#2182
Add JobCount method to MonitoringApi to get count of jobs in any state#2182Issung wants to merge 1 commit intoHangfireIO:mainfrom
Conversation
|
I realise you have a redis storage and preview memory storage too that this would need implementing on. Given it is a reasonably simple function I hope you can do it quickly and easily, if you would prefer I do it where can I access those classes to make another PR matching this one? |
|
... and I have a Storage provider for a specific CMS and there are MySQL and mongoddb and many other storage providers out there. So no changing of public interfaces, it break things. |
|
I agree with the need for this after having implemented our own custom states recently. A workaround for now could be to add a default implementation (which just throws a NotImplementedException instance) to the JobStorageMonitor base abstract class. |
|
I like that Idea @Qubitus, I will update the PR soon with that change. |
|
Kudos, SonarCloud Quality Gate passed!
|








Currently monitoring API only supports getting job count for the given states (e.g. processing, scheduled, failed)
Useful for developers who create jobs with custom states.
Signed commits now.