In Prefect 2.0, you can track metadata about task and flow results via the Prefect UI. The metadata includes data type and storage location if the result is persisted. This information can be seen on the "Results" page for flows in the UI.
However, the excerpts provided do not explicitly state how to tell if task code was executed or if results were retrieved from cached results. There isn't a direct reference to whether there's a visual indicator or log entry in the flow run dashboard that would specify this.
If you are concerned about understanding whether results are being computed or retrieved from cache, you might need to inspect the logs for your flow run. Tasks that retrieve results from cache might have specific log messages indicating that the execution was skipped and the results were retrieved from cache instead of being computed again. On the other hand, tasks that run their code will have logs showing the execution steps.
Unfortunately, without additional context or access to a flow run dashboard and its documentation, a more precise answer cannot be provided. If you have access to the Prefect UI, I would recommend examining the logs for your flow run to look for indications of cached results being used.