René's URL Explorer Experiment


Title: Add CommonService.subscribe, with overridable queue names by ndevenish · Pull Request #212 · DiamondLightSource/python-workflows · GitHub

Open Graph Title: Add CommonService.subscribe, with overridable queue names by ndevenish · Pull Request #212 · DiamondLightSource/python-workflows

X Title: Add CommonService.subscribe, with overridable queue names by ndevenish · Pull Request #212 · DiamondLightSource/python-workflows

Description: So far overridable queue names have only existed on a subset of manually implemented dlstbx services e.g. dlstbx.services.per_image_analysis. This centralises all of what was previously workflows.recipe.wrap_subscribe( self._transport, "strategy", self.generate_strategy, acknowledgement=True, log_extender=self.extend_log, ) to self.subscribe("strategy", self._generate_strategy) with defaults set to match the common settings (Everything can still be overridden). This also implements a universal mechanism for overriding the queue - ServiceStarter (used by zocalo.go and dlstbx.go) now adds it's own --queue argument (unless the caller already has their own). If this is set, or if the service "environment" dictionary has a queue/queues entry, or if the WORKFLOWS_QUEUE environment variable is set, then it will replace the defaults subscribed queue under the following rules: queuename=newname will replace the queue name if it matches exactly. Multiple entries can be space- or comma- separated. newname will replace the queue name only if the service subscribes to one (non-broadcast) queue - if a second queue is connected then an error will be raised. -q/--queue [NAME=]QUEUE can be passed multiple times to any frontend using ServiceStarter.

Open Graph Description: So far overridable queue names have only existed on a subset of manually implemented dlstbx services e.g. dlstbx.services.per_image_analysis. This centralises all of what was previously workflows.r...

X Description: So far overridable queue names have only existed on a subset of manually implemented dlstbx services e.g. dlstbx.services.per_image_analysis. This centralises all of what was previously workflows.r...

Opengraph URL: https://github.com/DiamondLightSource/python-workflows/pull/212

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3cd4a490-dca2-23f0-61a9-7018a4a00983
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE3A6:199A13:5AB8D1:7F33A8:6B0474DB
html-safe-nonce36166276c082320914a6ddff3e918dd72ff2410d779dba3ce18225c19cb9b7b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0E2OjE5OUExMzo1QUI4RDE6N0YzM0E4OjZCMDQ3NERCIiwidmlzaXRvcl9pZCI6IjI4OTc2Nzg3NTgzODk3NzM1MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac371deb0c197fcac1686480607b156fbe6244649ff22a6b717288108696b2020b
hovercard-subject-tagpull_request:5019440974
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/DiamondLightSource/python-workflows/pull/212/files
twitter:imagehttps://avatars.githubusercontent.com/u/529963?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/529963?s=400&v=4
og:image:altSo far overridable queue names have only existed on a subset of manually implemented dlstbx services e.g. dlstbx.services.per_image_analysis. This centralises all of what was previously workflows.r...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/DiamondLightSource/python-workflows git https://github.com/DiamondLightSource/python-workflows.git
octolytics-dimension-user_id1233618
octolytics-dimension-user_loginDiamondLightSource
octolytics-dimension-repository_id69960867
octolytics-dimension-repository_nwoDiamondLightSource/python-workflows
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id69960867
octolytics-dimension-repository_network_root_nwoDiamondLightSource/python-workflows
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecf73f57448d52b3a7b619195e182b33d3b3454ca
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/DiamondLightSource/python-workflows/pull/212/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDiamondLightSource%2Fpython-workflows%2Fpull%2F212%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDiamondLightSource%2Fpython-workflows%2Fpull%2F212%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=DiamondLightSource%2Fpython-workflows
Reloadhttps://github.com/DiamondLightSource/python-workflows/pull/212/files
Reloadhttps://github.com/DiamondLightSource/python-workflows/pull/212/files
Reloadhttps://github.com/DiamondLightSource/python-workflows/pull/212/files
DiamondLightSourcehttps://github.com/DiamondLightSource
python-workflowshttps://github.com/DiamondLightSource/python-workflows
Codehttps://github.com/DiamondLightSource/python-workflows
Issues1 (1)https://github.com/DiamondLightSource/python-workflows/issues
Pull requestshttps://github.com/DiamondLightSource/python-workflows/pulls
Actionshttps://github.com/DiamondLightSource/python-workflows/actions
Projectshttps://github.com/DiamondLightSource/python-workflows/projects
Security and qualityhttps://github.com/DiamondLightSource/python-workflows/security
Insightshttps://github.com/DiamondLightSource/python-workflows/insights
Sign up for GitHub https://github.com/signup?return_to=%2FDiamondLightSource%2Fpython-workflows%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FDiamondLightSource%2Fpython-workflows%2Fissues%2Fnew%2Fchoose
ndevenishhttps://github.com/ndevenish
mainhttps://github.com/DiamondLightSource/python-workflows/tree/main
queue-subscribehttps://github.com/DiamondLightSource/python-workflows/tree/queue-subscribe
Conversation 0 https://github.com/DiamondLightSource/python-workflows/pull/212
Commits 2 https://github.com/DiamondLightSource/python-workflows/pull/212/commits
Checks 10 https://github.com/DiamondLightSource/python-workflows/pull/212/checks
Files changed https://github.com/DiamondLightSource/python-workflows/pull/212/files
Please reload this pagehttps://github.com/DiamondLightSource/python-workflows/pull/212/files
Add CommonService.subscribe, with overridable queue names https://github.com/DiamondLightSource/python-workflows/pull/212/files#top
Show all changes 2 commits https://github.com/DiamondLightSource/python-workflows/pull/212/files
9fd595a Add CommonService.subscribe with overridable queue names ndevenish Oct 26, 2026 https://github.com/DiamondLightSource/python-workflows/pull/212/commits/9fd595aa2176f32b336e05ea6f8c2d8a949a5ff7
e1d05fc Use self.subscribe in the sample pipethrough service ndevenish Oct 26, 2026 https://github.com/DiamondLightSource/python-workflows/pull/212/commits/e1d05fc58e3b400e9182d4221646a62605d0c930
Clear filters https://github.com/DiamondLightSource/python-workflows/pull/212/files
Please reload this pagehttps://github.com/DiamondLightSource/python-workflows/pull/212/files
Please reload this pagehttps://github.com/DiamondLightSource/python-workflows/pull/212/files
start_service.py https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-76ff843f253d4cee3da40ccffa13c62fe3f498e6ac26d2212c3b5872a21c5e2e
common_service.py https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-fd4a0b8bbb9d29b40260c37ce36410a335e37c463dc5b9514d17e0b127486955
sample_pipethrough.py https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-ce9b9bfbedb0bf92e2429a3989512f1580da384832e8369b0ca51b7295d5a641
test_start_service.py https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-2d755294d46fde48ea366bed6a0a658ccf455e0a2ac0afcb39c680901493b164
test_common_service.py https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-c9cbbda0b51fb324c2249dd55aebb7e0d967ad98b865c18e4a7fa473ba3a8569
test_sample_pipethrough.py https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-070488f29b43c38a9bf40144bd41bbcfa4415318c1bddc23d00e8f0ff6b94465
src/workflows/contrib/start_service.pyhttps://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-76ff843f253d4cee3da40ccffa13c62fe3f498e6ac26d2212c3b5872a21c5e2e
View file https://github.com/DiamondLightSource/python-workflows/blob/e1d05fc58e3b400e9182d4221646a62605d0c930/src/workflows/contrib/start_service.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/DiamondLightSource/python-workflows/pull/212/{{ revealButtonHref }}
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-76ff843f253d4cee3da40ccffa13c62fe3f498e6ac26d2212c3b5872a21c5e2e
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-76ff843f253d4cee3da40ccffa13c62fe3f498e6ac26d2212c3b5872a21c5e2e
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-76ff843f253d4cee3da40ccffa13c62fe3f498e6ac26d2212c3b5872a21c5e2e
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-76ff843f253d4cee3da40ccffa13c62fe3f498e6ac26d2212c3b5872a21c5e2e
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-76ff843f253d4cee3da40ccffa13c62fe3f498e6ac26d2212c3b5872a21c5e2e
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-76ff843f253d4cee3da40ccffa13c62fe3f498e6ac26d2212c3b5872a21c5e2e
src/workflows/services/common_service.pyhttps://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-fd4a0b8bbb9d29b40260c37ce36410a335e37c463dc5b9514d17e0b127486955
View file https://github.com/DiamondLightSource/python-workflows/blob/e1d05fc58e3b400e9182d4221646a62605d0c930/src/workflows/services/common_service.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/DiamondLightSource/python-workflows/pull/212/{{ revealButtonHref }}
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-fd4a0b8bbb9d29b40260c37ce36410a335e37c463dc5b9514d17e0b127486955
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-fd4a0b8bbb9d29b40260c37ce36410a335e37c463dc5b9514d17e0b127486955
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-fd4a0b8bbb9d29b40260c37ce36410a335e37c463dc5b9514d17e0b127486955
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-fd4a0b8bbb9d29b40260c37ce36410a335e37c463dc5b9514d17e0b127486955
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-fd4a0b8bbb9d29b40260c37ce36410a335e37c463dc5b9514d17e0b127486955
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-fd4a0b8bbb9d29b40260c37ce36410a335e37c463dc5b9514d17e0b127486955
src/workflows/services/sample_pipethrough.pyhttps://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-ce9b9bfbedb0bf92e2429a3989512f1580da384832e8369b0ca51b7295d5a641
View file https://github.com/DiamondLightSource/python-workflows/blob/e1d05fc58e3b400e9182d4221646a62605d0c930/src/workflows/services/sample_pipethrough.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/DiamondLightSource/python-workflows/pull/212/{{ revealButtonHref }}
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-ce9b9bfbedb0bf92e2429a3989512f1580da384832e8369b0ca51b7295d5a641
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-ce9b9bfbedb0bf92e2429a3989512f1580da384832e8369b0ca51b7295d5a641
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-ce9b9bfbedb0bf92e2429a3989512f1580da384832e8369b0ca51b7295d5a641
tests/contrib/test_start_service.pyhttps://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-2d755294d46fde48ea366bed6a0a658ccf455e0a2ac0afcb39c680901493b164
View file https://github.com/DiamondLightSource/python-workflows/blob/e1d05fc58e3b400e9182d4221646a62605d0c930/tests/contrib/test_start_service.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/DiamondLightSource/python-workflows/pull/212/{{ revealButtonHref }}
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-2d755294d46fde48ea366bed6a0a658ccf455e0a2ac0afcb39c680901493b164
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-2d755294d46fde48ea366bed6a0a658ccf455e0a2ac0afcb39c680901493b164
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-2d755294d46fde48ea366bed6a0a658ccf455e0a2ac0afcb39c680901493b164
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-2d755294d46fde48ea366bed6a0a658ccf455e0a2ac0afcb39c680901493b164
https://github.com/DiamondLightSource/python-workflows/pull/212/files#diff-2d755294d46fde48ea366bed6a0a658ccf455e0a2ac0afcb39c680901493b164
Please reload this pagehttps://github.com/DiamondLightSource/python-workflows/pull/212/files
Please reload this pagehttps://github.com/DiamondLightSource/python-workflows/pull/212/files
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.