vk
12/20/2023, 2:36 PMMarvin
12/20/2023, 2:37 PMorchestrate_task_run
function within engine.py
of Prefect's core library, but it does not specify the exact line where the miscalculation occurs. A more in-depth examination of the code would be required to pinpoint the problematic section. As for large parameters like a 10M row dataframe, the potential performance impact is not directly due to introspection but could rather stem from serializing or logging large parameters if they are not properly quoted.
For now, the suggested workaround for the warning is to wrap large task parameters with prefect.utilities.annotations.quote
to prevent unnecessary introspection and logging, which should also alleviate the erroneous warning. Since this issue seems to be unresolved at the moment, you may want to follow the GitHub issue for updates or contribute to the conversation there for any specific concerns related to your use case. Additionally, if the warnings are causing too much noise, you can temporarily disable them by setting PREFECT_TASK_INTROSPECTION_WARN_THRESHOLD=0
as suggested in the warning message itself.