Skip to content

Make Pythonflow thread-compatible.#40

Merged
tillahoffmann merged 1 commit intospotify:masterfrom
jkp:master
Feb 13, 2019
Merged

Make Pythonflow thread-compatible.#40
tillahoffmann merged 1 commit intospotify:masterfrom
jkp:master

Conversation

@jkp
Copy link
Copy Markdown
Contributor

@jkp jkp commented Feb 6, 2019

Previously it was impossible to use pythonflow in a multithreaded application: with this patch it is possible to use distinct pythonflow graphs, one per-thread.

Previously it was impossible to use Pythonflow in a multithreaded
application: with this patch it is possible to use distinct Pythonflow
graphs, one per-thread.
Comment thread tests/test_pythonflow.py
with pf.Graph() as graph:
event.set()
except AssertionError as e:
event.set()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to call event.set() here in case the test fails such that the tests don't hang?

@tillahoffmann tillahoffmann merged commit 3b57f2b into spotify:master Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants