X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=NG-RO%2Fosm_ng_ro%2Fns_thread.py;h=b713d4dcd6dee30992f56f0fe21d66d4450ca38b;hb=4d5c814c1490b641818f362fe538252e10bf6d8c;hp=8103ea7b1eff6a866839847363387d273a176584;hpb=8ba16fd83e772374fb28cb1023b383e406889c2e;p=osm%2FRO.git diff --git a/NG-RO/osm_ng_ro/ns_thread.py b/NG-RO/osm_ng_ro/ns_thread.py index 8103ea7b..b713d4dc 100644 --- a/NG-RO/osm_ng_ro/ns_thread.py +++ b/NG-RO/osm_ng_ro/ns_thread.py @@ -1875,6 +1875,11 @@ class NsWorker(threading.Thread): task["item"] ].refresh(ro_task) _update_refresh(new_status) + else: + # The refresh is updated to avoid set the value of "refresh_at" to + # default value (next_check_at = now + (24 * 60 * 60)) when status is BUILD, + # because it can happen that in this case the task is never processed + _update_refresh(task["status"]) except Exception as e: new_status = "FAILED"