getting this warning: ```UserWarning: A Task was p...
# ask-community
a
getting this warning:
Copy code
UserWarning: A Task was passed as an argument to PostgresExecute, you likely want to first initialize PostgresExecute with any static (non-Task) arguments, then call the initialized task with any dynamic (Task) arguments instead. For example:

  my_task = PostgresExecute(...)  # static (non-Task) args go here
  res = my_task(...)  # dynamic (Task) args go here

see <https://docs.prefect.io/core/concepts/flows.html#apis> for more info.