Creating a task for just a single function call

How many times do the 50 packets need to be sent? Just once? Or is this something you are going to have to repeat over and over. If you have to do it over and over then making the task persistent (i.e. not deleting and recreating it) would seem to be the way to go to ensure the resources required by the task are always available. However…

Why do you need to send the packets from a separate task at all? Can you just do it inline from the original task?