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
In your last release you changed the way the callback functions work. The return values of on_start are not passed to on_done as input arguments anymore. I hope you didn't do it on purpose, that makes it hard to close open connections if a worker has finished.
@kalkschneider Thanks for reporting the issue!
It was a serious bug resulting from the recent refactor.
BTW: Version 0.2 brought small modifications to how these additional arguments are handled, instead of *args we are now using **kwargs which means that on_start now should return a dictionary instead of a tuple. Take a look at the new documentation for the behavior: https://cgarciae.github.io/pypeln/advanced/#resource-management
Hello Cristian,
In your last release you changed the way the callback functions work. The return values of
on_start
are not passed toon_done
as input arguments anymore. I hope you didn't do it on purpose, that makes it hard to close open connections if a worker has finished.Your old code:
Your new code:
The text was updated successfully, but these errors were encountered: