@Kevin Kho @Anna Geller thank you very much for your help. I’ve made an attempt to convert this particular part of the flow from an implicit List task to a data dependency per the example code y’all shared above.
However, this seems to have broken the register step in our CI/CD pipeline since we are using the azure pipelines Bash task to call
prefect register
and have failOnStderr set to
true
(which I don’t really want to change)
I now get a warning on stderr that looks like this
/Users/brian.sorahan/Library/Python/3.9/lib/python/site-packages/prefect/storage/base.py:154: UserWarning: Task <Task: Bar> has retry settings but some upstream dependencies do not have result types. See <https://docs.prefect.io/core/concepts/results.html> for more details.
_healthcheck.result_check(self._flows.values(), quiet=True) # type: ignore
This is actually me calling register from my laptop, but it’s the same warning we get on azure pipelines.
The script I’m trying to register is a small toy script that reproduces the warning.
The
list_task
in this script is my workaround for the implicit List task issue we were discussing above, maybe I’m doing that wrong?