Disabled hangfire recurring job keeps executing

Viewed 43

I've defined a recurring job like this because I want to run it manually on demand from the dashboard one time only:

RecurringJob.AddOrUpdate(() => _service.StartDev(), Cron.Never);

It appears correctly as disabled in the dashboard:

enter image description here

The problem is that after I've executed it once it keeps executing again and again, that's how it looks in the database:

enter image description here

Question: how can I prevent such behavior and make it to be executed only once on demand?

I've tried putting those attributes on the interface (and function before), but they don't do the job

[DisableConcurrentExecution(60*120)]
[AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]
0 Answers
Related