def migration_task(): for config in EWSGhanaConfig.get_all_steady_sync_configs(): if config.enabled: endpoint = GhanaEndpoint.from_config(config) ews_bootstrap_domain(EWSApi(config.domain, endpoint)) stock_data_task.delay( EWSStockDataSynchronization(config.domain, endpoint))
def migration_task(): for config in EWSGhanaConfig.get_all_steady_sync_configs(): if config.enabled: endpoint = GhanaEndpoint.from_config(config) ews_bootstrap_domain(EWSApi(config.domain, endpoint)) apis = ( ('stock_transaction', sync_stock_transactions), ) stock_data_task.delay(config.domain, endpoint, apis, config, EWS_FACILITIES)
def migration_task(): for config in EWSGhanaConfig.get_all_steady_sync_configs(): if config.enabled: endpoint = GhanaEndpoint.from_config(config) ews_bootstrap_domain(EWSApi(config.domain, endpoint)) stock_data_task.delay(EWSStockDataSynchronization(config.domain, endpoint))
def migration_task(): configs = EWSGhanaConfig.get_all_configs() for config in configs: if config.enabled: ews_bootstrap_domain(EWSApi(config.domain, GhanaEndpoint.from_config(config)))