def migration_task(): configs = ILSGatewayConfig.get_all_configs() for config in configs: if config.enabled: bootstrap_domain(config)
def bootstrap_domain_task(domain): ilsgateway_config = ILSGatewayConfig.for_domain(domain) return bootstrap_domain(ilsgateway_config)