Skip to content

Add retrials of OFC for cloud missing measurements in MTAOS #99

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

Merged
merged 5 commits into from
Jul 9, 2025

Conversation

gmegh
Copy link
Contributor

@gmegh gmegh commented Jul 2, 2025

No description provided.

Copy link
Member

@tribeiro tribeiro left a comment

Choose a reason for hiding this comment

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

Can you please, split the changes you made to the Model and the CSC in different commits?

I have some comments inline about the changes in the CSC.

config=config_yaml,
timeout=self.CMD_TIMEOUT,
)
ofc_failure_count = 0
Copy link
Member

Choose a reason for hiding this comment

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

you need to define this variable before we enter the loop, in line ~1167.

f"{ofc_failure_count}/{self.max_ofc_consecutive_failures}."
)
if ofc_failure_count >= self.max_ofc_consecutive_failures:
await self.fault(
Copy link
Member

Choose a reason for hiding this comment

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

you should just raise the exception here.

@gmegh gmegh force-pushed the tickets/DM-51689 branch from 0cb1068 to 5e819ae Compare July 2, 2025 18:14
)
if ofc_failure_count >= self.max_ofc_consecutive_failures:
raise
else:
Copy link
Member

Choose a reason for hiding this comment

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

Either remove this else statement or move the warning log you do above here.

@gmegh gmegh force-pushed the tickets/DM-51689 branch from b96c355 to 3b94c42 Compare July 9, 2025 10:10
@gmegh gmegh merged commit 74e9f45 into develop Jul 9, 2025
4 checks passed
@gmegh gmegh deleted the tickets/DM-51689 branch July 9, 2025 13:55
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