Hello everyone!
I have implemented the IRecurringBackgroundJob, but something seems wrong. I've scheduled it to repeat after 3 days, and after 7 days, but it's repeating every day. This is happening in Umbraco Cloud and I am suspicious it has to do with a restarting IIS process, but I cannot be certain.
Does anyone have any suggestions or fixes to revolve this?
please see attachment
Copy code
public TimeSpan Period => TimeSpan.FromDays(7);
public TimeSpan Delay => TimeSpan.FromHours(24);
Does anyone have any ideas what could be wrong? please 🥹
s
Sebastiaan
06/10/2024, 10:27 AM
Can you see if it actually restarted? You could hack it by setting a marker somewhere in a database table or something to note when the last run time was.