SOLVED Scrubs not starting after time change from default. Threshold remains at 35 default.

Paul5

Contributor
Joined
Jun 17, 2013
Messages
117
As the title: Scrubs not starting after time change from default. Threshold remains at 35 default.
The default was Sundays at 00:00 with a threshold of 35
I changed it to Sundays at 19:00 keeping the default threshold of 35.
It failed yet it changed over to next run in 7 days.
I tried again at 21:30 and again it failed whilst it again changed over to 7 days.

I can start them manually so I know it works. It must be Cron Jobs as it's the only thing I changed.

Whilst I don't really yet grasp threshold I changed nothing but moved the time forward.
FAiled scrubs start.jpg
 
Last edited:
Joined
Oct 22, 2019
Messages
3,641
If a scrub had already been run within the "threshold" period (i.e, 35 days), then it will skip its scheduled run.

Doesn't matter if you see "Next scrub in 4 days" or whatever.


The logic is more like this:

"Run a scrub every week on Sundays at 7pm."

"Here comes Sunday!"

"Here comes 7pm! Time to run a scrub!"

"Oh wait. Nevermind. Nope. It hasn't been 35 days since the last time the pool was scrubbed."


Yes, even manually run scrubs affect this threshold.
 

Paul5

Contributor
Joined
Jun 17, 2013
Messages
117
If a scrub had already been run within the "threshold" period (i.e, 35 days), then it will skip its scheduled run.

Doesn't matter if you see "Next scrub in 4 days" or whatever.


The logic is more like this:

"Run a scrub every week on Sundays at 7pm."

"Here comes Sunday!"

"Here comes 7pm! Time to run a scrub!"

"Oh wait. Nevermind. Nope. It hasn't been 35 days since the last time the pool was scrubbed."


Yes, even manually run scrubs affect this threshold.
Ok, you just blew my mind. So why not just say run Scrub once every 35 days on a Sunday. Threshold moots the weekly setting.

So in my case they wont' run again for another 25 days or so? But I've seen them run weekly with default of 35?
 
Joined
Oct 22, 2019
Messages
3,641
So why not just say run Scrub once every 35 days on a Sunday.
No day of the week lands every 35 days. :wink: (There are 7 days in a week.)

The threshold + day of the week will assure you that your pool will be scrubbed "monthly" on the same day of the week.

The reason why the scrub schedule isn't "Scrub once a month" or "Scrub on the first day of each month" is because this will occur on a different day of the week each time. This can be really bad if you want to reserve your scrubs to only certain days (and times) in which there is the least amount of activity. Plus, they can be better managed with other periodic tasks (SMART tests, replications, etc.). As long as your other tasks are on a different day of the week, you can keep everything isolated from each other.



So in my case they wont' run again for another 25 days or so? But I've seen them run weekly with default of 35?
I've never seen this. You're sure you remember it correctly. Maybe you're confusing it with the pool's status on the "last scrub results"?
 

Paul5

Contributor
Joined
Jun 17, 2013
Messages
117
I've never seen this. You're sure you remember it correctly. Maybe you're confusing it with the pool's status on the "last scrub results"?
This is trivia so don't bother answering but I always know when it it is running for one of the HDDs has that old fashioned grumbling sound when reading/seeking. At the same time my system will shutdown if no clients so when I here the grumble I know to leave a client online so TN won't shutdown.

In any case you probably are right and I'm just loosing my sense of time and reality :smile:

Thanks for your help. I'll market as Solved, thanks again.
 

samarium

Contributor
Joined
Apr 8, 2023
Messages
192
If I want to run once a month on Sunday, I usually use daysofmonth=1,2,3,4,5,6,7 and dayofweek=Sunday
 
Top