You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In all the examples, the input is a simple, hardcoded list (e.g. [1, 2, 3]). In my case, my input function is an iterator function that may raise an exception during an arbitrary iteration. In that case, I'd like pypeln to invalidate the entire pipeline's work, and propagate the exception and optionally offer a way to do some clean up.
Describe the solution you'd like
importpypelndefinput_func():
foriinrange(10):
ifi<7:
yieldielse:
raiseException()
defcompute_func():
# some arbitrary operationpasstry:
encryption_stage=pl.process.each(
compute_func,
input_func,
run=True,
)
exceptExceptione:
# allows me to handle input_func error here
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered, any example in any other framework
Additional context #63 describes a way to handle error if compute_func throws an exception. Currently I don't see a way for pypeln to raise the exception raised by input_func. Can anyone see a good workaround for this issue as well? Thanks!
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In all the examples, the input is a simple, hardcoded list (e.g.
[1, 2, 3]
). In my case, my input function is an iterator function that may raise an exception during an arbitrary iteration. In that case, I'd like pypeln to invalidate the entire pipeline's work, and propagate the exception and optionally offer a way to do some clean up.Describe the solution you'd like
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered, any example in any other framework
Additional context
#63 describes a way to handle error if
compute_func
throws an exception. Currently I don't see a way for pypeln to raise the exception raised byinput_func
. Can anyone see a good workaround for this issue as well? Thanks!The text was updated successfully, but these errors were encountered: