Owen McMahon
09/13/2021, 7:47 PMmap_index
in the filename so it properly writes out each mapped task to an individual result) within a flow running against Prefect Cloud.
I just came across a weird scenario where the Flow did run the Mapped Task fully through (100 Mapped Tasks in total), but noticed afterwards that 7 of them had a status of 'Cached'. This caught my eye - as it should not have loaded any of them from the Cache. When I looked closer at the logs of one of the 'Cached' Mapped Tasks - it looks like it finished successfully, and then restarted ~7 mins later and loaded from Cache.
It appears that all data is still there as I expected - but behavior seemed a bit odd. Wondering if anyone else has seen this before?
Thanks!Kevin Kho
Owen McMahon
09/13/2021, 7:58 PMtask_a = TaskA(
log_stdout=True,
name="TASK NAME",
target="results/{date:%Y}-{date:%m}-{date:%d}/{task_name}-{map_index}.txt",
checkpoint=True,
result=results,
)
and the results being used are GCSResultsKevin Kho
Owen McMahon
09/13/2021, 8:04 PM