Quantcast
Channel: User MikelThief - Stack Overflow
Viewing all articles
Browse latest Browse all 26

Answer by MikelThief for Delete all the Hangfire jobs

$
0
0

To delete recurring job (what i think you meant) you should firstly ask your storage to provide you all recurring jobs you have set:

jobStorage.GetConnection().GetRecurringJobs(); // where jobStorage is your storage instance, you can access it via JobStorage.Current in static context.

then delete a desired entry:

recurringJobManager.RemoveIfExists("someId"); // where recurringJobManager is instance of IRecurringJobManager

then PurgeJobs3() should work as expected (as it uses IRecurringJobManager under the hood). Perhaps the job identifier does not match your target?


Viewing all articles
Browse latest Browse all 26

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>