mietek / haskell-on-heroku

Buildpack for deploying Haskell apps
BSD 3-Clause "New" or "Revised" License
131 stars 16 forks source link

Halcyon auto-update during startup / unidle #36

Closed rehno-lindeque closed 10 years ago

rehno-lindeque commented 10 years ago

It appears that halcyon goes through it auto-update cycle whenever a Heroku app is unidled (with a 1X app anyway)

2014-11-05T11:35:23.795932+00:00 heroku[web.1]: Starting process with command `/app/.halcyon/slug/bin/circuithub-api Staging -p 4934`
2014-11-05T11:35:24.584382+00:00 app[web.1]: -----> Setting buildpack paths
2014-11-05T11:35:24.586171+00:00 app[web.1]:    *** DEBUG: .profile.d/buildpack.sh
2014-11-05T11:35:25.556120+00:00 app[web.1]: -----> Auto-updating bashmenot... done, bb9d0a6
2014-11-05T11:35:26.090603+00:00 app[web.1]: -----> Setting Halcyon paths
2014-11-05T11:35:26.090613+00:00 app[web.1]:    *** DEBUG: halcyon/src/paths.sh
2014-11-05T11:35:26.615385+00:00 app[web.1]: -----> Auto-updating Halcyon... done, 01a5982
2014-11-05T11:35:28.375418+00:00 app[web.1]: -----> Halcyon paths already set
2014-11-05T11:35:28.508271+00:00 app[web.1]:    *** DEBUG: halcyon/src/paths.sh
2014-11-05T11:35:28.508263+00:00 app[web.1]: -----> Setting Halcyon paths
2014-11-05T11:35:28.375426+00:00 app[web.1]:    *** DEBUG: halcyon/src/paths.sh
2014-11-05T11:35:30.697148+00:00 heroku[web.1]: State changed from starting to up

For now I've simply set HALCYON_NO_AUTOUPDATE=1 to prevent this:

2014-11-05T12:25:52.660167+00:00 heroku[api]: Set HALCYON_NO_AUTOUPDATE config vars by ...
2014-11-05T12:25:52.660167+00:00 heroku[api]: Release v316 created by ...
2014-11-05T12:25:52.789571+00:00 heroku[web.1]: State changed from up to starting
2014-11-05T12:25:54.864142+00:00 heroku[web.1]: Starting process with command `/app/.halcyon/slug/bin/circuithub-api Staging -p 28601`
2014-11-05T12:25:55.036800+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2014-11-05T12:25:56.265594+00:00 app[web.1]: -----> Setting buildpack paths
2014-11-05T12:25:56.265612+00:00 app[web.1]:    *** DEBUG: .profile.d/buildpack.sh
2014-11-05T12:25:56.362218+00:00 heroku[web.1]: Process exited with status 143
2014-11-05T12:25:56.704846+00:00 app[web.1]: -----> Setting Halcyon paths
2014-11-05T12:25:56.704856+00:00 app[web.1]:    *** DEBUG: halcyon/src/paths.sh
2014-11-05T12:25:56.739107+00:00 app[web.1]: -----> Setting Halcyon paths
2014-11-05T12:25:56.739115+00:00 app[web.1]:    *** DEBUG: halcyon/src/paths.sh
2014-11-05T12:25:58.355622+00:00 heroku[web.1]: State changed from starting to up
mietek commented 10 years ago

Thanks. Yes, trying to improve this bit right now, hence the debug messages.

mietek commented 10 years ago

Done.