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

Prefect flow based on GitHub file for OT2 #79

Open
sgbaird opened this issue Oct 16, 2024 · 5 comments
Open

Prefect flow based on GitHub file for OT2 #79

sgbaird opened this issue Oct 16, 2024 · 5 comments
Assignees

Comments

@sgbaird
Copy link
Member

sgbaird commented Oct 16, 2024

The prefect flow can be linked to a specific file within a repository, which allows for a sort of "over the air" (OTA) update to the device code.

@sgbaird
Copy link
Member Author

sgbaird commented Oct 16, 2024

@yunhzou

@yunhzou
Copy link

yunhzou commented Oct 16, 2024

Yes! This will allow dynamic code management which is quite nice.
python from prefect import serve,flow source = "https://github.com/yunhzou/Prefect_demo.git" entrypoint = "prefect_demo.py:add_numbers" serve(flow.from_source(source=source, entrypoint=entrypoint)) #or workpool flow.from_source(source=source, entrypoint=entrypoint).deploy(name="add_numbers", work_pool_name="Jackie Computer")

Difference between workpool and serve method:
Workpool allow dynamic deploy different functions on workpool terminals
Serve predefine what are the functions need to be run on the machine, and can not be change later

@sgbaird sgbaird assigned sgbaird and yunhzou and unassigned sgbaird Oct 24, 2024
@sgbaird
Copy link
Member Author

sgbaird commented Oct 24, 2024

@yunhzou what are your thoughts/plans for tomorrow for the OT-2 color matching demo? #26

@sgbaird
Copy link
Member Author

sgbaird commented Oct 25, 2024

Sounds like you've been having trouble with installing Prefect on the Raspberry Pi (a 3 I think) embedded in the Opentrons, which it sounds like is running Linux.

Do you mind including the steps/commands you ran and the full command line output for the pip install?

Related:

When you share the full command output I should be able to help debug. We can jump on a screen share / remote access if needed since it's more urgent.

@yunhzou
Copy link

yunhzou commented Oct 25, 2024

Works now.
Video:
https://youtu.be/4Eu4eYGAP9w
Code:
yunhzou/OT2Demo#1

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

No branches or pull requests

2 participants