ENH: Remove processed depends_on
and produces
markers from task function.
#216
Labels
enhancement
New feature or request
Is your feature request related to a problem?
When a generator is used to provide arguments in a single run of a parametrization and the build is parallelized, the following issue occurs: pytask-dev/pytask-parallel#35.
A small reproducible example is:
When pytask-parallel attempts to pickle the task function, the generator is empty but still there and cannot be pickled.
Describe the solution you'd like
For other markers we already remove them from the function after they are processed. For example,
@pytask.mark.parametrize
is removed.API breaking implications
Good question! Don't expect issues.
Describe alternatives you've considered
None
The text was updated successfully, but these errors were encountered: