Title: Investigate missing asyncio support for Celery · Issue #21 · anomaly/lab-python-server · GitHub
Open Graph Title: Investigate missing asyncio support for Celery · Issue #21 · anomaly/lab-python-server
X Title: Investigate missing asyncio support for Celery · Issue #21 · anomaly/lab-python-server
Description: As part of this lab, we made a massive push to migrate our technology stack including the future of SQLAlchemy which is headed towards a 2.0 syntax (this is in line with SQLAlchemy 2.0 release, where there 1.4 branch provides a migration...
Open Graph Description: As part of this lab, we made a massive push to migrate our technology stack including the future of SQLAlchemy which is headed towards a 2.0 syntax (this is in line with SQLAlchemy 2.0 release, whe...
X Description: As part of this lab, we made a massive push to migrate our technology stack including the future of SQLAlchemy which is headed towards a 2.0 syntax (this is in line with SQLAlchemy 2.0 release, whe...
Opengraph URL: https://github.com/anomaly/lab-python-server/issues/21
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Investigate missing asyncio support for Celery","articleBody":"As part of this lab, we made a massive push to migrate our technology stack including the future of SQLAlchemy which is headed towards a 2.0 syntax (this is in line with SQLAlchemy 2.0 release, where there 1.4 branch provides a migration strategy). This aligns SQLAlchemy to work with the async mode that our `asgi` application based on FastAPI was already headed.\r\n\r\nCelery our queue processor of choice was meant to support `ayncio` in the `5.x` release, which is what we use in this stack. Until such time that Celery supports we have the following choices:\r\n\r\n- Use FastAPI background tasks wherever possible to process background tasks\r\n- Find a way to use `async` code in a `sync` fashion so we can use Celery without `asyncio` support \r\n- Provide a `sync` version of SQLAlchemy sessions and queries - this is the least preferred option as it will add unwanted code that will significantly add to the technical debt\r\n\r\nAt the moment our use cases for applications would be able to get away with using FastAPI background tasks, our current requirements are limited to sending SMS and email and processing `webhook` payloads from `Stripe` (these could take longer depending on what we are trying to do and would be more suited to `Celery` handled tasks).","author":{"url":"https://github.com/devraj","@type":"Person","name":"devraj"},"datePublished":"2022-07-23T00:23:22Z","url":"https://github.com/anomaly/lab-python-server/issues/21"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2718faba-3336-a26d-c4fe-9bdcecf1ca6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9942:1BE13B:704E71:97B11E:6B04A52B |
| html-safe-nonce | ad07ce4a5108d922d12cd44a2994cc4fb8119a7365933035298d77cef7f54b65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTQyOjFCRTEzQjo3MDRFNzE6OTdCMTFFOjZCMDRBNTJCIiwidmlzaXRvcl9pZCI6IjcwNDMxNDU2MDQzODk5NzEyNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 086eeed2f7f6aee9eec69b7110c21cf00ac04ffcf893c4ad5e4b6af342520ea2 |
| hovercard-subject-tag | issue:1315506248 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/anomaly/lab-python-server/21/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73327b889c1e6a5d5e51a7b775a43c8ea65f3e57166eabeffccda12ae2d3ae63/anomaly/lab-python-server/issues/21 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73327b889c1e6a5d5e51a7b775a43c8ea65f3e57166eabeffccda12ae2d3ae63/anomaly/lab-python-server/issues/21 |
| og:image:alt | As part of this lab, we made a massive push to migrate our technology stack including the future of SQLAlchemy which is headed towards a 2.0 syntax (this is in line with SQLAlchemy 2.0 release, whe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | devraj |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| turbo-cache-control | no-preview |
| go-import | github.com/anomaly/lab-python-server git https://github.com/anomaly/lab-python-server.git |
| octolytics-dimension-user_id | 3654837 |
| octolytics-dimension-user_login | anomaly |
| octolytics-dimension-repository_id | 491764445 |
| octolytics-dimension-repository_nwo | anomaly/lab-python-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 491764445 |
| octolytics-dimension-repository_network_root_nwo | anomaly/lab-python-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width