galaxyproject / ephemeris

Library for managing Galaxy plugins - tools, index data, and workflows.
https://ephemeris.readthedocs.org/
Other
27 stars 38 forks source link

Add sleep script #37

Closed hexylena closed 7 years ago

hexylena commented 7 years ago

Lots of the flavour images do a startup_lite && sleep 30 && ... in order to do things on a live database. This number can be quite variable. 30s was fine for me, but wasn't for a colleague who had to increase it.

This script can be used in place of sleep 30 and will sleep until /api/version is available. This should be much more reliable.

A timeout option is provided to prevent abusing build resources if something else is at fault (e.g. a missing package allowed startup_lite to succeed initially but fail silently later).

bgruening commented 7 years ago

Nice idea!!!

bgruening commented 7 years ago

Thanks @erasche I think we should rename the script as well, but we can do this later!