René's URL Explorer Experiment


Title: Python functions shut down slowly · Issue #109 · crossplane/function-sdk-python · GitHub

Open Graph Title: Python functions shut down slowly · Issue #109 · crossplane/function-sdk-python

X Title: Python functions shut down slowly · Issue #109 · crossplane/function-sdk-python

Description: What happened? I'm not fully sure where to report this, but the point is that after introducing a composition function developed with python, we noticed that: The latency of the function deployment to do a rollout restart is way larger t...

Open Graph Description: What happened? I'm not fully sure where to report this, but the point is that after introducing a composition function developed with python, we noticed that: The latency of the function deployment...

X Description: What happened? I'm not fully sure where to report this, but the point is that after introducing a composition function developed with python, we noticed that: The latency of the function deploy...

Opengraph URL: https://github.com/crossplane/function-sdk-python/issues/109

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python functions shut down slowly","articleBody":"### What happened?\r\n\r\nI'm not fully sure where to report this, but the point is that after introducing a composition function developed with python, we noticed that:\r\n- The latency of the function deployment to do a rollout restart is way larger than others (e.g. based on go sdk)\r\n- The amount of time it takes for `crossplane render` got penalized as well.\r\n\r\nThis is negatively impacting both CI and DevEx since rendering a composition is quite a common use case.\r\n\r\n### How can we reproduce it?\r\n\r\nI just tested this with a dummy function which does nothing:\r\n\r\n```python\r\n    async def RunFunction(\r\n        self, req: fnv1.RunFunctionRequest, _: grpc.aio.ServicerContext\r\n    ) -\u003e fnv1.RunFunctionResponse:\r\n        \"\"\"Run the function.\"\"\"\r\n        log = self.log.bind(tag=req.meta.tag)\r\n        log.info(\"Running function and doing nothing\")\r\n\r\n        return response.to(req)\r\n```\r\n\r\nRunning `crossplane render` on a composition that has this function as a dependency (not necessarily used in the pipeline, just declaring this as a dependency in `crossplane.yaml` is enough) adds an extra ~10s. A couple of experiments with simple compositions raise the amount of time for the render command from 1-2 seconds to 10-12 seconds.\r\n\r\nI was suspecting that [this](https://github.com/crossplane/function-sdk-python/blob/main/crossplane/function/runtime.py#L119) could have something to do, and played by setting it to `None` but apparently didn't help :(\r\n\r\n### What environment did it happen in?\r\nfunction-sdk-python version: 0.5.0\r\ncrank version v1.18.0\r\n\r\n","author":{"url":"https://github.com/fernandezcuesta","@type":"Person","name":"fernandezcuesta"},"datePublished":"2024-11-15T13:02:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/109/function-sdk-python/issues/109"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a0bc8e94-85ce-e0a8-928c-be3149ef65b4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC120:1DB01:2DF550:3E70CB:6A61641D
html-safe-noncea1fe602cd44a13728742bc2d771169f47610df0c40c200bcd9387d9a846034b1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTIwOjFEQjAxOjJERjU1MDozRTcwQ0I6NkE2MTY0MUQiLCJ2aXNpdG9yX2lkIjoiMzA1NDE3NzY4MTQ5NDA3NDM5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbad2194b3aa184eea24693307dc3cae5c6d8b32a963be64d2284eae296ad1e4c
hovercard-subject-tagissue:2661895711
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/crossplane/function-sdk-python/109/issue_layout
twitter:imagehttps://opengraph.githubassets.com/03762ece40aca089dd84127b228fbe02de246c1677900c3b72d12de294b510eb/crossplane/function-sdk-python/issues/109
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/03762ece40aca089dd84127b228fbe02de246c1677900c3b72d12de294b510eb/crossplane/function-sdk-python/issues/109
og:image:altWhat happened? I'm not fully sure where to report this, but the point is that after introducing a composition function developed with python, we noticed that: The latency of the function deployment...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefernandezcuesta
hostnamegithub.com
expected-hostnamegithub.com
Nonec258d2b06b498220e3b94af28b26bbbf58f4203a6373725f779afcc867afd263
turbo-cache-controlno-preview
go-importgithub.com/crossplane/function-sdk-python git https://github.com/crossplane/function-sdk-python.git
octolytics-dimension-user_id45158470
octolytics-dimension-user_logincrossplane
octolytics-dimension-repository_id721365259
octolytics-dimension-repository_nwocrossplane/function-sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id721365259
octolytics-dimension-repository_network_root_nwocrossplane/function-sdk-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5f67bc431418961e0814f1eb30a4231250e4726d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/crossplane/function-sdk-python/issues/109#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcrossplane%2Ffunction-sdk-python%2Fissues%2F109
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcrossplane%2Ffunction-sdk-python%2Fissues%2F109
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=crossplane%2Ffunction-sdk-python
Reloadhttps://github.com/crossplane/function-sdk-python/issues/109
Reloadhttps://github.com/crossplane/function-sdk-python/issues/109
Reloadhttps://github.com/crossplane/function-sdk-python/issues/109
Please reload this pagehttps://github.com/crossplane/function-sdk-python/issues/109
crossplane https://github.com/crossplane
function-sdk-pythonhttps://github.com/crossplane/function-sdk-python
Notifications https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Fork 14 https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Star 13 https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Code https://github.com/crossplane/function-sdk-python
Issues 6 https://github.com/crossplane/function-sdk-python/issues
Pull requests 1 https://github.com/crossplane/function-sdk-python/pulls
Actions https://github.com/crossplane/function-sdk-python/actions
Projects https://github.com/crossplane/function-sdk-python/projects
Security and quality 0 https://github.com/crossplane/function-sdk-python/security
Insights https://github.com/crossplane/function-sdk-python/pulse
Code https://github.com/crossplane/function-sdk-python
Issues https://github.com/crossplane/function-sdk-python/issues
Pull requests https://github.com/crossplane/function-sdk-python/pulls
Actions https://github.com/crossplane/function-sdk-python/actions
Projects https://github.com/crossplane/function-sdk-python/projects
Security and quality https://github.com/crossplane/function-sdk-python/security
Insights https://github.com/crossplane/function-sdk-python/pulse
#140https://github.com/crossplane/function-sdk-python/pull/140
Python functions shut down slowlyhttps://github.com/crossplane/function-sdk-python/issues/109#top
#140https://github.com/crossplane/function-sdk-python/pull/140
bugSomething isn't workinghttps://github.com/crossplane/function-sdk-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/fernandezcuesta
fernandezcuestahttps://github.com/fernandezcuesta
on Nov 15, 2024https://github.com/crossplane/function-sdk-python/issues/109#issue-2661895711
thishttps://github.com/crossplane/function-sdk-python/blob/main/crossplane/function/runtime.py#L119
bugSomething isn't workinghttps://github.com/crossplane/function-sdk-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.