brainy-rain-21763
12/15/2022, 6:03 AMvictorious-lawyer-58417
12/15/2022, 6:17 AMtimerange, which defaults to the current hour. You can schedule an hourly flow with @schedule(hourly=True) and then it processes data hour by hour.
Let's say it fails for five hours at night between 11pm-4am. You can trigger a backfill manually with
python myflow.py step-functions trigger --timerange 20221213T23-20221214T04
your code would check if hourly data exists for the given time range and if it doesn't, it processes the missing databrainy-rain-21763
12/15/2022, 6:35 AMvictorious-lawyer-58417
12/15/2022, 6:38 AMvictorious-lawyer-58417
12/15/2022, 6:40 AMx runs of a flow A
from itertools import islice
from metaflow import Flow
previous_x_runs = list(islice(Flow('A'), x))victorious-lawyer-58417
12/15/2022, 6:41 AMvictorious-lawyer-58417
12/15/2022, 6:48 AM