Skip to content

Commit

Permalink
Add _SINGLE_PROCESS property to CachedDataSet (#1905)
Browse files Browse the repository at this point in the history
Signed-off-by: Carla Vieira <carlaprv@hotmail.com>
Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com>
  • Loading branch information
carlaprv authored and Ahdra Merali committed Oct 21, 2022
1 parent 6fa2048 commit ed06e8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kedro/io/cached_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class CachedDataSet(AbstractDataSet):
class as shown above.
"""

# this dataset cannot be used with ``ParallelRunner``,
# therefore it has the attribute ``_SINGLE_PROCESS = True``
# for parallelism please consider ``ThreadRunner`` instead
_SINGLE_PROCESS = True

def __init__(
self,
dataset: Union[AbstractDataSet, Dict],
Expand Down

0 comments on commit ed06e8d

Please sign in to comment.