Suppose I have a class called `ReadTable` which ex...
# prefect-community
a
Suppose I have a class called
ReadTable
which extends
Task.
This class just SELECTs data from a big SQL table. I want to perform this SELECT in parallel with say n sub-Tasks. So the
ReadTable(n)
object should spawn n sub-Tasks when it runs. How would this work within Prefect's OOP paradigm, where
ReadTable
inherits
Task
?
z
If you want your subtasks to be tracked by Prefect within your flow I would recommend making use of the ‘Mapping’ paradigm https://docs.prefect.io/core/concepts/mapping.html