https://dagster.io/ logo
#ask-community
Title
# ask-community
w

Will Gunadi

04/04/2022, 8:47 PM
Does anyone have experience spawning threads inside an Op? Will this work, or will Dagster throw a fit?
j

johann

04/04/2022, 9:22 PM
It should work, thre’s a few ways to shoot your own foot though. The op context object is not thread safe
w

Will Gunadi

04/05/2022, 1:47 PM
Yes, I figured that the context object to be not thread-safe. I'm looking at greenlet threads, do you think that would work? @johann
j

johann

04/05/2022, 2:25 PM
They should, yes
2 Views