def migration_task(): from custom.ilsgateway.stock_data import ILSStockDataSynchronization for config in ILSGatewayConfig.get_all_steady_sync_configs(): if config.enabled: endpoint = ILSGatewayEndpoint.from_config(config) ils_bootstrap_domain(ILSGatewayAPI(config.domain, endpoint)) stock_data_task.delay(ILSStockDataSynchronization(config.domain, endpoint))
def migration_task(): for config in ILSGatewayConfig.get_all_steady_sync_configs(): if config.enabled: endpoint = ILSGatewayEndpoint.from_config(config) ils_bootstrap_domain(ILSGatewayAPI(config.domain, endpoint)) apis = get_ilsgateway_data_migrations() stock_data_task.delay(config.domain, endpoint, apis, config, ILS_FACILITIES)
def migration_task(): configs = EWSGhanaConfig.get_all_configs() for config in configs: if config.enabled: commtrack_settings_sync(config.domain, LOCATION_TYPES) ils_bootstrap_domain(config, GhanaEndpoint.from_config(config), EXTENSIONS)
def ils_bootstrap_domain_task(domain): ils_config = ILSGatewayConfig.for_domain(domain) return ils_bootstrap_domain(ILSGatewayAPI(domain, ILSGatewayEndpoint.from_config(ils_config)))
def migration_task(): configs = ILSGatewayConfig.get_all_configs() for config in configs: if config.enabled: ils_bootstrap_domain(ILSGatewayAPI(config.domain, ILSGatewayEndpoint.from_config(config)))