Extremely helpful warning messages, not sure if th...
# prefect-community
a
Extremely helpful warning messages, not sure if this is a 0.14 thing or was always there but...great stuff! Feels almost like a code review note.
Copy code
/opt/project/dwt/extract/extract.py:43: UserWarning: A Task was passed as an argument to BookmarkEnd, you likely want to first initialize BookmarkEnd with any static (non-Task) arguments, then call the initialized task with any dynamic (Task) arguments instead. For example:

  my_task = BookmarkEnd(...)  # static (non-Task) args go here
  res = my_task(...)  # dynamic (Task) args go here
💯 5
🤩 1
j
Thanks! This was added in 0.13.17 (https://docs.prefect.io/api/latest/changelog.html#_0-13-17) - glad it's helpful!
🙌 1