Currently:
- NLP server sends http request to ecs container.
- ECS container sends acknowledgement to NLP server and then triggers the actual task.
- Upon the task completion/failure, ECS container directly upates NLP server's database with appropriate status for that task.
This is fragile and ECS has to know about database structure. So we need to have http endpoint in nlp server instead of direct db access by ecs.
cc: @ranjan-stha