fix 1386: enhance on lock procedure 48/10148/1
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:33:38 +0000 (14:33 +0000)
commita8ebeb1a2f4de0aa27cb6b2412e2feeafe945e81
tree97c12127788b1e327474c99ccee58e10a4a8fb6d
parentbc891ce785bb1ac6aece36892a623b5df39e1e21
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