79227842

Date: 2024-11-26 18:16:02
Score: 0.5
Natty:
Report link

The official docs explain it quite well. Simply import the quote function with:

from prefect.utilities.annotations import quote

Then, within your flow use:

def my_flow():
    # ...
    large_item = task_1()
    result = task_2(quote(large_item))
    # ...

instead of directly passing large_item to the next task.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fynnlyte