Long running background job only once

I want to use hangfire to start a long running process (consumer of rabbitmq). I used BackgroundJob.Enqueue and it works fine so far. But when the web application is restarted the job gets enqueued a second time and so on. Is there a better solution?