From dcf7065382cdbacf01a7de319bebabaaae01738b Mon Sep 17 00:00:00 2001 From: Robert Latta <robert.latta@geant.org> Date: Wed, 27 Jan 2021 16:26:38 +0000 Subject: [PATCH] reordered tasks --- inventory_provider/tasks/ims_worker.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inventory_provider/tasks/ims_worker.py b/inventory_provider/tasks/ims_worker.py index 80957658..774d4354 100644 --- a/inventory_provider/tasks/ims_worker.py +++ b/inventory_provider/tasks/ims_worker.py @@ -46,10 +46,9 @@ def launch_refresh_cache_all(config): # first batch of subtasks: refresh cached IMS data subtasks = [ update_neteng_managed_device_list.apply_async(), - update_circuit_hierarchy_ims.apply_async(), + update_equipment_locations_ims.apply_async(), + update_lg_routers_ims.apply_async(), update_fibre_spans_ims.apply_async(), - update_interfaces_to_port_ids_ims.apply_async(), - update_port_ids_to_services_ims.apply_async(), ] [x.get() for x in subtasks] @@ -73,8 +72,9 @@ def internal_refresh_phase_2_ims(self): try: subtasks = [ - update_equipment_locations_ims.apply_async(), - update_lg_routers_ims.apply_async(), + update_circuit_hierarchy_ims.apply_async(), + update_interfaces_to_port_ids_ims.apply_async(), + update_port_ids_to_services_ims.apply_async(), import_unmanaged_interfaces.apply_async() ] for hostname in data.derive_router_hostnames(InventoryTask.config): -- GitLab