René's URL Explorer Experiment


Title: Infinite loop when setting value in record's `on_update` callback · Issue #201 · DiamondLightSource/pythonSoftIOC · GitHub

Open Graph Title: Infinite loop when setting value in record's `on_update` callback · Issue #201 · DiamondLightSource/pythonSoftIOC

X Title: Infinite loop when setting value in record's `on_update` callback · Issue #201 · DiamondLightSource/pythonSoftIOC

Description: There is an infinite loop possible when using a record with always_update=True and blocking=True. Run the following IOC: # Import the basic framework components. from softioc import softioc, builder, asyncio_dispatcher # Create an asynci...

Open Graph Description: There is an infinite loop possible when using a record with always_update=True and blocking=True. Run the following IOC: # Import the basic framework components. from softioc import softioc, builde...

X Description: There is an infinite loop possible when using a record with always_update=True and blocking=True. Run the following IOC: # Import the basic framework components. from softioc import softioc, builde...

Opengraph URL: https://github.com/DiamondLightSource/pythonSoftIOC/issues/201

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Infinite loop when setting value in record's `on_update` callback","articleBody":"There is an infinite loop possible when using a record with `always_update=True` and `blocking=True`. Run the following IOC:\n\n```\n# Import the basic framework components.\nfrom softioc import softioc, builder, asyncio_dispatcher\n\n# Create an asyncio dispatcher, the event loop is now running\ndispatcher = asyncio_dispatcher.AsyncioDispatcher()\n\n# Set the record prefix\nbuilder.SetDeviceName(\"MY-DEVICE-PREFIX\")\n\n# Create some records\nasync def wrapped_method(value):\n    print(\"In callback\")\n    record.set(0, process=False)\n\nrecord = builder.Action(\n        \"TEST\",\n        on_update=wrapped_method,\n        blocking=True,\n        initial_value=0,\n        ZNAM=\"Idle\",\n        ONAM=\"Active\",\n    )\n\n# Boilerplate get the IOC started\nbuilder.LoadDatabase()\nsoftioc.iocInit(dispatcher)\n\n# Finally leave the IOC running with an interactive shell.\nsoftioc.interactive_ioc(globals())\n\n```\nand do `caput MY-DEVICE-PREFIX:TEST 1`. In the IOC output console you will see the `print` statement repeating forever, despite `process=False`.\n\nThe reason for this is that when `blocking=True` is specified, it changes how EPICS executes the `db_put_field` command present in the `record.set` method. It returns immediately, rather than running synchronously. This causes our logic that tracks the `process=False` request to break, and effectively put it back to the default value of `process=True`. \n\nIt is not immediately obvious what the fix is for this; we need to somehow associate the async callback with the initial synchronous `record.set`, but there is no way to pass context into the EPICS processing chain. \n\nThis issue originally found in https://github.com/DiamondLightSource/FastCS/issues/291.","author":{"url":"https://github.com/AlexanderWells-diamond","@type":"Person","name":"AlexanderWells-diamond"},"datePublished":"2026-02-02T10:06:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/201/pythonSoftIOC/issues/201"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5dd10983-067f-d9cf-9c13-7bc3e2c416a9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB1E:11D1F7:2556BB:32BE7B:6982631A
html-safe-nonce7f98b40c2284d4b7009712b8cec4515c257495939a68984d6fee15b0035bb0b9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjFFOjExRDFGNzoyNTU2QkI6MzJCRTdCOjY5ODI2MzFBIiwidmlzaXRvcl9pZCI6IjcwMjgzMDIxODAyMDk4MTIyNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac20edaacd90d8b46ae7ebae2e1e2defef62529e80514daf7e576d0c04f109d08d
hovercard-subject-tagissue:3885060136
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/DiamondLightSource/pythonSoftIOC/201/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1cca5f3c31232bbf55ef1335d8541fa67033342f35b98d5458852d760dd33d17/DiamondLightSource/pythonSoftIOC/issues/201
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1cca5f3c31232bbf55ef1335d8541fa67033342f35b98d5458852d760dd33d17/DiamondLightSource/pythonSoftIOC/issues/201
og:image:altThere is an infinite loop possible when using a record with always_update=True and blocking=True. Run the following IOC: # Import the basic framework components. from softioc import softioc, builde...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexanderWells-diamond
hostnamegithub.com
expected-hostnamegithub.com
None82a2ec7faf3b85991d40091f37cdc8035653d1a2ca08b1e6f36670ac6c91d893
turbo-cache-controlno-preview
go-importgithub.com/DiamondLightSource/pythonSoftIOC git https://github.com/DiamondLightSource/pythonSoftIOC.git
octolytics-dimension-user_id1233618
octolytics-dimension-user_loginDiamondLightSource
octolytics-dimension-repository_id20049394
octolytics-dimension-repository_nwoDiamondLightSource/pythonSoftIOC
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20049394
octolytics-dimension-repository_network_root_nwoDiamondLightSource/pythonSoftIOC
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
releaseb83d89864fafc7a67b8747b788f52c909d47dbfd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/issues/201#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FDiamondLightSource%2FpythonSoftIOC%2Fissues%2F201
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FDiamondLightSource%2FpythonSoftIOC%2Fissues%2F201
Sign up https://patch-diff.githubusercontent.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=DiamondLightSource%2FpythonSoftIOC
Reloadhttps://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/issues/201
Reloadhttps://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/issues/201
Reloadhttps://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/issues/201
DiamondLightSource https://patch-diff.githubusercontent.com/DiamondLightSource
pythonSoftIOChttps://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FDiamondLightSource%2FpythonSoftIOC
Fork 9 https://patch-diff.githubusercontent.com/login?return_to=%2FDiamondLightSource%2FpythonSoftIOC
Star 43 https://patch-diff.githubusercontent.com/login?return_to=%2FDiamondLightSource%2FpythonSoftIOC
Code https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC
Issues 12 https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/issues
Pull requests 4 https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/pulls
Discussions https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/discussions
Actions https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/actions
Projects 0 https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/projects
Wiki https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/wiki
Security 0 https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/security
Insights https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/pulse
Code https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC
Issues https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/issues
Pull requests https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/pulls
Discussions https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/discussions
Actions https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/actions
Projects https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/projects
Wiki https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/wiki
Security https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/security
Insights https://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/DiamondLightSource/pythonSoftIOC/issues/201
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/DiamondLightSource/pythonSoftIOC/issues/201
#202https://github.com/DiamondLightSource/pythonSoftIOC/pull/202
Infinite loop when setting value in record's on_update callbackhttps://patch-diff.githubusercontent.com/DiamondLightSource/pythonSoftIOC/issues/201#top
#202https://github.com/DiamondLightSource/pythonSoftIOC/pull/202
https://patch-diff.githubusercontent.com/AlexanderWells-diamond
https://github.com/AlexanderWells-diamond
https://github.com/AlexanderWells-diamond
AlexanderWells-diamondhttps://github.com/AlexanderWells-diamond
on Feb 2, 2026https://github.com/DiamondLightSource/pythonSoftIOC/issues/201#issue-3885060136
DiamondLightSource/FastCS#291https://github.com/DiamondLightSource/FastCS/issues/291
AlexanderWells-diamondhttps://patch-diff.githubusercontent.com/AlexanderWells-diamond
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.