James Bennett Saxon
07/23/2020, 1:58 AMMySqlFetch.run()
. :
ERROR:prefect.TaskRunner:Unexpected error: AttributeError('__enter__',)
So I didn't want to get into debugging this because my code could be totally wrong. I was hoping to find some examples of using this and other Prefect Tasks. Are there examples for how to use this and other tasks?Chris White
MySqlFetch
) so the documentation variesJeremiah
MySqlFetch
task’s code, it looks like it attempts to enter two different context managers to open a transaction - is it possible that it’s failing to connect, so conn
is an object like None? That code is here.conn
if the connection failsJames Bennett Saxon
07/23/2020, 2:16 AMChris White
James Bennett Saxon
07/23/2020, 4:32 AM__enter__
! Why not? Maybe I've got version issues...Chris White
Jeremiah
James Bennett Saxon
07/23/2020, 5:05 PMChris White
James Bennett Saxon
07/27/2020, 4:39 PM