Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Fix exception handling for run_in_venv #66

Merged
merged 25 commits into from
Aug 14, 2023

Conversation

Roulbac
Copy link
Contributor

@Roulbac Roulbac commented Aug 2, 2023

Sometimes the function would return and attempt to pickle the resulting (broken) object before the child process is able to finish handling an exception it raised. This results in an error and the pipe blocks.
This PR fixes the issue by enclosing the whole process of deserialisation-execution-serialization into the try/catch.

@Roulbac
Copy link
Contributor Author

Roulbac commented Aug 2, 2023

@smahmed776 Improved exception handling and logging, PTAL

@Roulbac Roulbac requested a review from smahmed776 August 2, 2023 12:26
flojoy/flojoy_node_venv.py Outdated Show resolved Hide resolved
@itsjoeoui itsjoeoui merged commit c7f1eb3 into main Aug 14, 2023
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants