Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1745] Fetch from --genesis-url likely to fail in composed container… #1746

Merged
merged 3 commits into from
May 4, 2022

Conversation

tdiesler
Copy link
Contributor

… setup

Signed-off-by: Thomas Diesler [email protected]

…in composed container setup

Signed-off-by: Thomas Diesler <[email protected]>
@TimoGlastra
Copy link
Contributor

As this is more of a VON-network thing, maybe you can make the acapy service dependant on the webserver service (https://docs.docker.com/compose/compose-file/compose-file-v3/#depends_on) and add a healthcheck to the webserver service that pings whether the container is online (https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck)

@tdiesler
Copy link
Contributor Author

depends_on does not work, because liveness does not imply readiness. IMHO, it is an ACA-Py issue, because this project requires that the genesis information becomes available within 5sec of process startup - which is a bold assumption.

If genesis becomes available within 5sec, the proposed change has no effect. If genesis doesn't become available at all, the process would not fail before the 20sec timeout, which might not be ideal. An improved solution might be an additional config parameter that tells ACA-Py how long to wait for dependent components (i.e. Ledger + Tails Server)

@swcurran swcurran added the 0.7.4 label May 3, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #1746 (2ea9393) into main (ff68284) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1746   +/-   ##
=======================================
  Coverage   95.23%   95.23%           
=======================================
  Files         528      528           
  Lines       33142    33142           
=======================================
  Hits        31564    31564           
  Misses       1578     1578           

@ianco ianco merged commit db6b769 into openwallet-foundation:main May 4, 2022
@tdiesler tdiesler deleted the ghi1745 branch June 20, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants