Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

hangfire clear all jobs

TRUNCATE TABLE [HangFire].[AggregatedCounter]
TRUNCATE TABLE [HangFire].[Counter]
TRUNCATE TABLE [HangFire].[JobParameter]
TRUNCATE TABLE [HangFire].[JobQueue]
TRUNCATE TABLE [HangFire].[List]
TRUNCATE TABLE [HangFire].[State]
DELETE FROM [HangFire].[Job]
DBCC CHECKIDENT ('[HangFire].[Job]', reseed, 0)
UPDATE [HangFire].[Hash] SET Value = 1 WHERE Field = 'LastJobId'
Source by discuss.hangfire.io #
 
PREVIOUS NEXT
Tagged: #hangfire #clear #jobs
ADD COMMENT
Topic
Name
8+4 =