Skip to content

sicay1/CoreHangfire1

Repository files navigation

Logo

Learning stuffs

Author [Tony Truong]

To do -Successed job delete after 1 day - need to extend -Log with log4net or NLog

Hangfire DB cleanup

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'

Releases

No releases published

Packages

No packages published

Languages