Notifications to GitLab: retry logic
During startup (or restart) of the whole stack, it is possible for the pre- and post-receive hooks to the Rails application to fail. In fact, it is even probable because the startup of the Rails app is in the minute ballpark, while other involved components (Workhorse, Shell, and hg HTTP) have a sub-second startup time.
A retry logic would help, here.