Skip to content

try forever to get mirrors, slits into initial positions#19

Open
untzag wants to merge 8 commits into
yaq-project:mainfrom
untzag:try-until-initial
Open

try forever to get mirrors, slits into initial positions#19
untzag wants to merge 8 commits into
yaq-project:mainfrom
untzag:try-until-initial

Conversation

@untzag

@untzag untzag commented Feb 3, 2023

Copy link
Copy Markdown
Member

closes #10

Untested, please look closely and test if you can.

@untzag untzag self-assigned this Feb 3, 2023

@ksunden ksunden left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm still salty in general that this is necessary (empirically something does need to change here, just not happy that it's so), but not blocking on that front... just that it doesn't do what is intended yet

Regardless I am also unwilling to merge this particular kind of patch (complicated startup timing) without it being tested on the real hardware

Comment thread yaqd_horiba/_horiba_ihr.py Outdated
@untzag
untzag requested a review from ksunden February 3, 2023 19:52
@ksunden

ksunden commented Feb 3, 2023

Copy link
Copy Markdown
Member

I'm not a huge fan of unbounded startup loops...

Perhaps we should issue a warning/error after a certain number of attempts

(and or exponential backoff to give other factors which might be impeding success time to be fixed)

@untzag

untzag commented Feb 3, 2023

Copy link
Copy Markdown
Member Author

@ddkohler @kameyer226 as end-users what behavior do you want? Do you want the mono to keep trying to return to the old positions forever? Do you want it to give up and shut itself off after a while? Do you want it to try a certain number of times and then just stop trying?

@kameyer226

Copy link
Copy Markdown
Contributor

I believe it should just try to move 3-4 times. The initialization already takes time, so adding a few trials makes little impact on overall time.

@untzag

untzag commented Feb 5, 2023

Copy link
Copy Markdown
Member Author

@kameyer226 in your opinion what should happen if it doesn't succeed after 4 attempts?

@kameyer226

Copy link
Copy Markdown
Contributor

If not succeed, write failure to logger, not sure what else

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.

horiba-ihr320: state changes on restart

3 participants