feat(docker): Depends_on based on initializer#12584
Conversation
|
No security concerns detected in this pull request. All finding details can be found in the DryRun Security Dashboard. |
valentijnscholten
left a comment
There was a problem hiding this comment.
Cool! What happens when there is an error in the initializer? I guess it just fails with an error and the other containers are never started?
Exactly (well, except psql and redis - they do not use dependency, so they would still be running) For testing, I changed |
|
Excellent work here 🚀 |
This change blocks the start of
uwsgi,celerybeat, andceleryworkeruntilinitializeris notcompleted_successfully. This is useful for:uwsgi,celerybeat, andceleryworkerduring start-up when the db is not readyinitializer(they might get easily lost within other logs).