at the top level outside of the task and in the task like in that example and both times it gives me this
Copy code
TypeError: Pickling context objects is explicitly not supported. You should always access context as an attribute of the `prefect` module, as in `prefect.context`
Anyone have any ideas why it’s failing when i try to register the flow?
k
Kevin Kho
03/17/2022, 10:08 PM
I think I’d need to see more of the flow here. Could you DM it to me?
j
Jacob Longhurst
03/17/2022, 10:09 PM
Yeah
a
Anna Geller
03/17/2022, 10:09 PM
this error happens usually when you define the logger globally at the module scope rather than grabbing it from the context within a task
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.