SJRK-64: Move retry logic for configuring database from server project to couch-config project

Metadata

Source
SJRK-64
Type
Task
Priority
Major
Status
Closed
Resolution
Done
Assignee
Alan Harnum
Reporter
Alan Harnum
Created
2018-03-27T14:15:34.231-0400
Updated
2019-11-18T14:30:34.677-0500
Versions
N/A
Fixed Versions
N/A
Component
N/A

Description

As part of the initial work to create a fully containerized definition of the application + dependencies, some basic retry logic was implemented in the storytelling server project's couch configuration grade (https://github.com/waharnum/sjrk-story-telling-server/blob/SJRK-60/src/js/dbSetup.js#L102) - this allows the configuration to be resilient when dealing with the potential sequencing issues that arise when spinning up various containers, including ones responsible for operations like database configuration. (see https://docs.docker.com/compose/startup-order/)

As this is generally useful functionality it should be moved from the server project to the couch-config project, with attendant test coverage.

Comments