schedule loop stops when leaving world

I use a 1s loop in my datapack that starts with a schedule in the load file and then is kept alive at the end of the called function. For some reasons this loop stops when leaving and rejoining a world (solo, so like restarting the server). Any Idea why / way to avoid this?

Continue to help post