Recurring job gets triggered on server restart

we have some recurring jobs that trigger once a day at a specific time.

we noticed them sometimes triggering at unexpected times and we just realised that this happens on server restarts. We just had one case today when one of our 2 servers was restarted (we have a load balancer)

is this a bug? how do I avoid this behaviour?

I know that if you turn the server off for long enough it will try to catch up on missed jobs by running the recurring task once.

i tested this by setting a task to run minutely and then starting it again after 5 minutes to see what happened.

but if its just a server restart on a daily task i would assume nothing would need “catching up on” this could be a bug.