#!/usr/bin/env python """Flow's exec. Run it with --help for usage.""" import logging from feed_ingestion.flows.meta_daily import config from feed_ingestion.util import exec_utils logger = logging.getLogger(__name__) PROD_READY_REPORTS = list(config.reports.keys()) class FlowExec(exec_utils.FlowExecDaily, exec_utils.ReportMixin): """Flow exec for Meta Daily ingestion. Inherits --reload, --skip, --days, --context, and --context-date args from FlowExecBase and FlowExecDaily. Adds --report via ReportMixin. """ flow_name = config.feed_name REPORTS = PROD_READY_REPORTS REPORT_CONTEXT_KEY = 'report' if __name__ == '__main__': FlowExec().main()