There should be no problem with this.
However, if add_task depends on the results of the subtask, you may run into a problem when you have run out of workers, but this does not look like your small fragment. Technically, there is a limit to the number of tasks that you can queue, because ultimately you will run out of memory.
You better just try to see what happens!
source share