Base solution for your next web application
Open Closed

Getting Hangfire job context #12236


User avatar
0
Ricavir created

Hi,

Is there a way to get Hangfire job context with ABP 9.3 ? I need to get "retryCount" value on job execution.

This should be possible with following Hangfire command : JobStorage.Current.GetConnection().GetJobParameter(jobId, "RetryCount")

I tried it by adding Hangfire nuget package directly but I'm getting a dependency error :

'MyJob' is waiting for the following dependencies:
- Service 'Hangfire.Server.PerformContext' which was not registered.

No answer yet!