#!/usr/bin/env python """Flow's exec. Run it with --help for usage.""" import logging from feed_ingestion.flows.spotify import config from feed_ingestion.util import exec_utils logger = logging.getLogger(__name__) class FlowExec(exec_utils.FlowExecDaily, exec_utils.LicensorMixin): """Flow's exec.""" flow_name = config.feed_name LICENSORS = config.spotify_api_licensors def add_args(self): """Add args.""" exec_utils.add_arg_bool( parser=self.parser, name='build_dbt', env_var='BUILD_DBT', context_key='build_dbt', ) exec_utils.add_arg_bool( parser=self.parser, name='use_partitioned', env_var='USE_PARTITIONED', default='True', context_key='use_partitioned', ) super().add_args() if __name__ == '__main__': FlowExec().main()