Hangfire Jobs are running old version of code


#1

Whenever I recompile and and try to re-run my jobs, it seems that for some reason they are running old versions of my code, is there any reason why this could be happening? Thanks!


#2

Well what is in those enqueued jobs? Are the enqueued jobs calling a method you have created? Or is the job execute code you specified when you enqueued the job?

If you are having the enqueued job is executing a method, then you might not have updated the code that the Hangfire server is using. If the Hangfire server’s reference leads to an old version of that method, it will be using that old code.