hallowed-australia-42114
08/04/2023, 5:25 PM@retry that takes into account an artifact from the failed step? I am iterating through a large number of items and hoping that when the step fails I can resume it based on the last known processed item id.victorious-lawyer-58417
08/04/2023, 9:28 PMmetaflow.S3 client
Take a look at this custom decorator, @resumable_processing :
You can define a list of values to be processed, store them as an artifact and process them in a step decorated with @resumable_processing. The decorator exposed unprocessed items in self.iter_item and allows you to checkpoint each successfully processed item with self.append_item.
If anything fails during processing, @retry kicks in and restarts the step. Then @resumable_processing checks what items have been processed already and exposes the rest through self.iter_item.hallowed-australia-42114
08/04/2023, 9:35 PMvictorious-lawyer-58417
08/04/2023, 9:37 PMvictorious-lawyer-58417
08/04/2023, 9:38 PMhallowed-australia-42114
08/04/2023, 9:44 PMvictorious-lawyer-58417
08/04/2023, 9:44 PM@resumable_processing + a foreach should do the trickhallowed-australia-42114
08/04/2023, 9:58 PM