How can I make this loop use the parallel linux command?

```
 func() {
     ssh -q $cn "systemctl restart ntpd"
 }

 for num in $(seq 30 40) ; do
    num_tmp=$(printf "%03d" $num)
    cn="node$num_tmp"    
    func
done | parallel

```

The func function changed according to the needs, basically it login to the node and run command(s) there

I tried to add parallel in the end of the loop as I saw but it dont work