Thomas Fredriksen
10/05/2021, 9:26 AMgevent
package. gevent
will patch the SSL-library and requires the following lines to be added before ssl
is imported in order to avoid an infinite import recursion:
import gevent.monkey
gevent.monkey.patch_all()
I am trying to deploy my flow to a Prefect Server instance, but it seems I am not able to monkey-patch early enough, as I am seeing this infinite recursion error in one of my tasks.
Is there any way of forcing the server to do this monkey-patch before executing the flow?Kevin Kho
10/05/2021, 2:55 PMThomas Fredriksen
10/05/2021, 5:32 PMKevin Kho
10/06/2021, 2:47 PM