fix 1386: enhance on lock procedure 91/10091/3
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 9 Dec 2020 15:06:01 +0000 (15:06 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 18 Dec 2020 14:14:39 +0000 (14:14 +0000)
commitf1b640f418cb13cfb19c080236254445a174e5ab
tree97c12127788b1e327474c99ccee58e10a4a8fb6d
parent8615352fd9db8a157462ad848e37260d4f3468d2
fix 1386: enhance on lock procedure

locking of ro_tasks for HA enhancements:
- lock time is configurable by ro.cfg or ENV
(OSMRO_SERVER_TASK_LOCKED_TIME)
- lock time is reduced to 10min by default
- lock is renewed when needed by a new asyncio task at vim_admin

Change-Id: Icae02803e57713aca2f028884142fa152ee3d032
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
NG-RO/osm_ng_ro/ns_thread.py
NG-RO/osm_ng_ro/ro.cfg
NG-RO/osm_ng_ro/vim_admin.py