Skip to content
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

Add linux compatibility for wand_server #60

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

danielwbn
Copy link
Contributor

Tested on Ubuntu 22.04, python 3.10.12, wlmdata 7.264.2

Linux compatibility depends on HighFinesse NetAccess linux client
installed on the machine running wand_server and
HighFinesse wlmdataserver running on the machine also running the
HighFinesse Instrument Server (see NetAccess manual for details).
This is needed by the artiq controller manager.
This makes sure there is a strong reference to the tasks so they
don't get garbage collected.
@hartytp
Copy link
Contributor

hartytp commented Jan 2, 2025

Thanks for the contribution! I'm really happy to see this - I'd love to get rid of windows on our servers.

I'll review later on and give feedback.

@hartytp
Copy link
Contributor

hartytp commented Jan 2, 2025

Save asyncio tasks in a set. This makes sure there is a strong reference to the tasks so they don't get garbage collected.

Good catch - I hadn't appreciated that asyncio only stores weak references. c.f. https://docs.astral.sh/ruff/rules/asyncio-dangling-task/

That reminds me that ruff is a way better linter / formatter than flake8. I'll make an issue about moving this across.

Copy link
Contributor

@hartytp hartytp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thank you for the contribution!

@hartytp hartytp merged commit 7992d2c into OxfordIonTrapGroup:master Jan 14, 2025
@danielwbn danielwbn deleted the linux branch January 14, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants