I feel there should be an `INFO` message saying “r...
# pacc-london-2023
a
I feel there should be an
INFO
message saying “results saved to cache” or something like that so it’s clearer when caching is happening vs not? Or is caching typically a behind-the-scenes action?
t
I believe the caching will be logged through the caching state.
a
logging! makes sense
🙌 1
n
Copy code
10:42:34.400 | INFO    | prefect.engine - Created flow run 'pearl-fox' for flow 'fetch-weather-metrics'
10:42:34.495 | INFO    | Flow run 'pearl-fox' - Created task run 'get_temperature-0' for task 'get_temperature'
10:42:34.495 | INFO    | Flow run 'pearl-fox' - Executing 'get_temperature-0' immediately...
10:42:34.631 | INFO    | Task run 'get_temperature-0' - Most recent temp C: 19.5 degrees
10:42:34.657 | INFO    | Task run 'get_temperature-0' - Finished in state Completed()
10:42:34.674 | INFO    | Flow run 'pearl-fox' - Created task run 'get_rain-0' for task 'get_rain'
10:42:34.674 | INFO    | Flow run 'pearl-fox' - Executing 'get_rain-0' immediately...
10:42:34.818 | INFO    | Task run 'get_rain-0' - Rain status: 0.0
10:42:34.843 | INFO    | Task run 'get_rain-0' - Finished in state Completed()
10:42:34.858 | INFO    | Flow run 'pearl-fox' - Created task run 'get_visibility-0' for task 'get_visibility'
10:42:34.859 | INFO    | Flow run 'pearl-fox' - Executing 'get_visibility-0' immediately...
10:42:34.887 | INFO    | Task run 'get_visibility-0' - Finished in state Cached(type=COMPLETED)
10:42:34.925 | INFO    | Flow run 'pearl-fox' - Finished in state Completed('All states completed.')