@async while loop not looping

After the first loop iteration, the task TPH is done and cannot be scheduled again.

But it looks like you want GetTPH and MakieWindow to run sequentially anyway, so why not simply do

function ttt()
    @async while true
        GetTPH()
        MakieWindow()
        sleep(5)
    end
end