-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 Use context manager for app server lifecycle in Celery workers #7962
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
🐛 Use context manager for app server lifecycle in Celery workers #7962
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7962 +/- ##
==========================================
- Coverage 87.84% 87.77% -0.08%
==========================================
Files 1849 1423 -426
Lines 71338 59115 -12223
Branches 1252 624 -628
==========================================
- Hits 62668 51887 -10781
+ Misses 8307 7018 -1289
+ Partials 363 210 -153
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
bisgaard-itis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻 thanks for the quick fix
packages/service-library/src/servicelib/fastapi/celery/app_server.py
Outdated
Show resolved
Hide resolved
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. please check the shutdown timeout comment. thanks!
packages/service-library/src/servicelib/fastapi/celery/app_server.py
Outdated
Show resolved
Hide resolved
|
While solving the startup issue, a new one related to the shutdown raised (see: #7968). The redesign solves both. |
pcrespov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx
…rloromeo/osparc-simcore into is7957/fix-storage-worker-startup
|
bisgaard-itis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks a lot for the quick fix



What do these changes do?
This PR removes timeouts on startup so that App Server initialisation can complete before starting the Celery worker itself.
Compared to the previous version, all slow initialisation procedures (e.g. DB migration) can complete... while the
worker_initwaits for thestartup_completed_eventto finalize the execution.Clean shutdown:
Related issue/s
How to test
Dev-ops