I have a server with Hangfire installed. I haven\'t checked it for a while and it seems one recurring job has gone rogue. It stopped working and then it has stacked up with
For Hangfire Postgresql you can run the following commands. In order for the tables to be rebuilt, you must restart the application
ALTER TABLE hangFire.state DROP CONSTRAINT state_jobid_fkey;
ALTER TABLE hangFire.jobParameter DROP CONSTRAINT jobparameter_jobid_fkey;
DROP TABLE hangFire.Schema;
DROP TABLE hangFire.Job;
DROP TABLE hangFire.State;
DROP TABLE hangFire.jobParameter;
DROP TABLE hangFire.jobQueue;
DROP TABLE hangFire.Server;
DROP TABLE hangFire.list;
DROP TABLE hangFire.set;
DROP TABLE hangFire.lock;
DROP TABLE hangFire.counter;
DROP TABLE hangFire.hash;
DROP SCHEMA hangFire Cascade;